QUARTIC_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 QUARTIC_MODEL$formula, the null
formula is defined in QUARTIC_MODEL$null_formula, the alternative is
defined in QUARTIC_MODEL$alt_formula.
a |
Numeric. Default is |
b |
Numeric. Default is |
c |
Numeric. Default is |
sigma |
Positive numeric. Default is |
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_normal()
test <- quartic_model(a = 200, b = 200, c = 20, 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.