GenData: Generate data

GenDataR Documentation

Generate data

Description

Simulated data using the correlation matrix

Usage

GenData(n, rmatrix, mu = 0, sd = 1, empirical = FALSE)

Arguments

n

number of the observations.

rmatrix

correlation matrix

mu

vector, theoretical mean of the generated data.

sd

vector, the standard deviation

empirical

logical. Whether the mean and covariance matrix refers to the empirical or population. See mvrnorm() in MASS package.

Author(s)

Shuo Wang

See Also

GenMatrix

Examples

m <- GenMatrix(3, rlist = list(c(1, 2, 0.5), c(1, 3, 0.3), c(2, 3, 0.7)))
D <- GenData(100, rmatrix = m)
head(D)


ShuoStat/RIE documentation built on March 19, 2022, 3:30 a.m.