data.gen.unif: Generate correlated uniform variates

View source: R/data_gen.R

data.gen.unifR 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.


synthesis documentation built on Sept. 11, 2024, 6:30 p.m.