View source: R/helper_functions.R
genevar | R Documentation |
generating predictors and response randomly using default settings
genevar(
n = 100,
p = 20,
e = 0.05,
r = 0.5,
intercept = 0,
beta = c(1, 2, 1, 2, 1, rep(0, p - 5)),
gamma = 10,
errorsigma = 1
)
n |
sample size |
p |
dimension |
e |
contamination rate |
r |
correlation coefficent |
beta |
regression coefficients |
gamma |
magnitude of outliers |
x, the generated design matrix
y, the generated response vector
beta, the regression coefficients we use
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.