data.gen.unif: Generate correlated uniform variates

Description Usage Arguments Value References

View source: R/data_gen.R

Description

Generate correlated uniform variates

Usage

1
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.


synthesis documentation built on May 3, 2021, 9:07 a.m.