Description Usage Arguments Value
Returns a normally distributed dataset with a correlation matrix that is given by the function corr_matrix and the non-zero coefficients as given by the function beta_type
1 2 3 4 5 6 7 8 | simsham(
n = 10,
p = 20,
s = 5,
corrmat = corrmat_identity(p),
beta = beta_first_s_covariates(p, s),
snr = 1
)
|
n |
number of observations |
p |
number of parameters |
s |
number of non-zero coefficients |
snr |
signal-to-noise ratio |
corr_matrix |
function that returns the correlation matrix |
beta_type |
function that returns the beta coefficient vector |
A list with X, y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.