Description Usage Arguments Value
View source: R/generateDesign.R
Generate Response and Design Matrix
1 2 3 4 5 6 7 8 9 10 | generateDesign(
n,
p,
density = 1,
rho = 0,
s = 5,
rho_type = c("constant", "auto"),
beta_type = 1,
snr = 2
)
|
n |
Number of observations |
p |
Number of predictors |
density |
Density of design matrix |
rho |
Correlation between predictors (corresponding to choice in |
s |
Number of signals (nonzero coefficients) |
rho_type |
Type of correlation between predictors. |
beta_type |
Type of coefficients to generate |
snr |
Signal-to-noise ratio |
A list with X
: the design matrix, and y
: the response.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.