powered by
Generate Multivariate Non-normal Data using Vale and Maurelli (1983) method. The codes are copied from mvrnonnorm function in the semTools package.
unonr(n, mu, Sigma, skewness = NULL, kurtosis = NULL, empirical = FALSE)
Sample size
A mean vector
A covariance matrix
A skewness vector
A kurtosis vector
If TRUE, mu and Sigma specify the empirical not population mean and covariance matrix
A data matrix (multivariate data)
Vale, C. D. & Maurelli, V. A. (1983) Simulating multivariate nonormal distributions. Psychometrika, 48, 465-471.
# NOT RUN { unonr(1000, c(1, 2), matrix(c(10, 2, 2, 5), 2, 2), skewness = c(1, 2), kurtosis = c(3, 8)) # }
Run the code above in your browser using DataLab