Description Usage Arguments Examples
View source: R/generate_data.R
Generates 'm_indep * m_corr' covariates, with a grouped correlation matrix with group size 'm_corr'.
1 | get_grouped_corr_data(n, m_indep, m_corr, corr_mat, seed)
|
n |
Number of observations in generated data |
m_indep |
Number of independent covariates |
m_corr |
Number of covariates correlated in group |
corr_mat |
Correlation matix, has to be of dim m_corr. If missing it uses a random correlation matrix. |
seed |
Integer to use as random seed. If missing, no seed is set. |
1 | get_grouped_corr_data(10, 3, 2, seed=7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.