NON_NORMAL_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
. The formula of y is defined in NON_NORMAL_MODEL$formula, the null
formula is defined in NON_NORMAL_MODEL$null_formula, the alternative is
defined in NON_NORMAL_MODEL$alt_formula.
x |
Random variable or closed form expression. Default is
|
e |
Random variable or closed form expression. Default is
|
Return the object itself.
# Instantiate
x <- rand_uniform()
e <- rand_lognormal(sigma = 0.5)
test <- non_normal_model(x = x, e = e)
test
# Generate data
test$gen(10)
# Generate lineup
test$gen_lineup(10, k = 3)
# Plot the lineup
test$plot_lineup(test$gen_lineup(100))
test <- non_normal_model(x = x, e = rand_lognormal(sigma = 0.1))
test$plot_lineup(test$gen_lineup(100))
test <- non_normal_model(x = x, e = rand_lognormal(sigma = 0.5))
test$plot_lineup(test$gen_lineup(100))
test <- non_normal_model(x = x, e = rand_lognormal(sigma = 1))
test$plot_lineup(test$gen_lineup(100))
test <- non_normal_model(x = x, e = rand_lognormal(sigma = 2))
test$plot_lineup(test$gen_lineup(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.