VI_MODEL$..init.. | R Documentation |
This function will be called after an instance is built. User
input will be stored in the environment. The response variable of this model
is y
.
prm |
Named List. A list of random variables or closed form expressions that
needs to be used while constructing |
prm_type |
Named List. A list of characters denoting the type of the
parameters. "r" stands for random variable or closed form used in the
expression of |
formula |
Formula. This will be passed to |
null_formula |
Formula. Formula for fitting the null model. Default is
|
alt_formula |
Formula. Formula for fitting the alternative model.
Default is |
Return the object itself.
# Instantiate
x <- rand_uniform()
e <- rand_normal()
test <- vi_model(prm = list(x = x, e = e),
prm_type = list(x = "r", e = "r"),
formula = y ~ 1 + x + x^2 + e,
null_formula = y ~ x,
alt_formula = y ~ x + I(x^2))
test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.