| GenData | R Documentation |
Simulated data using the correlation matrix
GenData(n, rmatrix, mu = 0, sd = 1, empirical = FALSE)
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. |
Shuo Wang
GenMatrix
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.