The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
This vignette describes the syntax for specifying stochastic and
identity equations, priors, and lags in the koma
package.
Stochastic (regression) equations model a dependent variable with an error term. An intercept is included by default.
Identity equations enforce exact relationships.
# Identity equations with explicitly defined weights:
# To aggregate the component growth rates into a growth rate for GDP we need to define weights.
# This is done by specifying the weights in the equation.
# You can, e.g. use the nominal level weights of the last observed period.
gdp == 0.7*consumption + 0.2*investment + 0.2*government - 0.1*net_exports Lags are specified with L() or lag()
notation. Ranges and combinations are supported.
There are two kinds of priors in koma equations:
Coefficient priors are written in front of the term they belong to:
For example:
This sets a prior with mean 0.4 and variance
0.1 on the coefficient of gdp.
You can use priors on:
1 or
constantThe error-term prior is different. It is written as a final prior with no variable name:
In the error-term prior, the two values specify:
Some valid examples for priors are:
# Prior on the intercept
consumption ~ {0, 1000} 1 + gdp
# Prior on a lagged term
consumption ~ gdp + {0.9, 10} consumption.L(1)
# Prior on an endogenous regressor
consumption ~ {0.2, 0.5} service + gdp
# Error-term prior: {df, scale}
consumption ~ gdp + consumption.L(1) + {3, 0.001}Rules:
{mean, variance} variable.{df, scale} and
appears without a variable name.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.