Description Usage Arguments Details Value Examples
Initialize a smoothed BETEL model by providing the model defining
function g()
, the prior generating function prior_fun()
and the
data y
to be used for the estimation of the model. Alternatively
ready-made functions can be used (e.g. by setting g = "var"
and
prior_fun() = "var"
). init_sbetel()
returns
a list that defines the model and can be passed on either to eval_sbetel()
or
est_sbetel()
.
#' @param y A data matrix. Input for g()
below. E.g. for g = "var"
this
would be a T x k
matrix with T
observations of k
variables.
1 2 3 4 5 6 7 8 9 | init_sbetel(
y,
g = "var",
prior_fun = "var",
bw = "auto",
initial = NULL,
args = list(),
verbose = TRUE
)
|
g |
A function of the form |
prior_fun |
A function that defines the prior data generating process.
The only inputs should be the model generated by |
bw |
Integer |
initial |
A function that returns an initial estimate for the parameters
and their covariance matrix as a list with two elements called |
args |
A list containing optional further arguments to |
verbose |
Logical. Defaults to |
TBA
init_sbetel()
returns a list that defines a sbetel model
and can be passed on to eval_sbetel()
or est_sbetel()
.
1 2 3 4 | ## Not run:
model <- init_sbetel(y = y, bw = 1, args = list(p = 2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.