data.gen.unif | R Documentation |
Generate correlated uniform variates
data.gen.unif(n, ndim = 9, r = 0.6, sigma, method = c("pearson", "spearman"))
n |
The data length to be generated. |
ndim |
The number of potential predictors (default is 9). |
r |
The target correlation, default is 0.6. |
sigma |
A symmetric matrix of Pearson correlation, should be same as ndim. |
method |
The target correlation type, inluding Pearson and Spearman correlation. |
A matrix of correlated uniform variates
Schumann, E. (2009). Generating correlated uniform variates. COMISEF. http://comisef. wikidot. com/tutorial: correlateduniformvariates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.