data.gen.unif {synthesis}R Documentation

Generate correlated uniform variates

Description

Generate correlated uniform variates

Usage

data.gen.unif(n, ndim = 9, r = 0.6, sigma, method = c("pearson", "spearman"))

Arguments

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.

Value

A matrix of correlated uniform variates

References

Schumann, E. (2009). Generating correlated uniform variates. COMISEF. http://comisef. wikidot. com/tutorial: correlateduniformvariates.


[Package synthesis version 1.2.4 Index]