Description Usage Arguments Examples
View source: R/generate_data.R
Generate correlated data
1 | get_corr_data(p, x = rnorm(100), corr_mat, seed)
|
p |
Number of correlated covariates |
x |
Generate covariates correlated to 'x'. |
corr_mat |
Correlation matix, has to be of dim 'p'. If missing it uses a random correlation matrix. |
seed |
Integer to use as random seed. If missing, no seed is set. |
1 | get_corr_data(10, seed=7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.