VI_MODEL$gen_lineup | R Documentation |
y
, and forms a lineupThis function generates random values from the expression of
y
, and keeps all the right hand side information in a data frame.
n |
Integer. Number of observations. |
k |
Integer. Number of plots in the lineup. Default is |
pos |
Integer. Position of the true data plot. Default is |
computed |
List. Default is |
A data frame.
# 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$gen_lineup(10, k = 3)
test$gen_lineup(10, k = 3, computed = list(e = 1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.