| rVM | R Documentation |
Convenience wrapper that combines calibrate_vm and
simulate in one call. Prefer the calibrate/simulate
split when drawing many samples from the same target.
rVM(N, sigma.target, skewness, excesskurtosis, reps = 1)
N |
Number of observations to simulate. |
sigma.target |
Target population covariance matrix. |
skewness |
Target skewness vector. |
excesskurtosis |
Target excess kurtosis vector. |
reps |
Number of simulated samples. |
A list of simulated samples.
Vale, C. D. and Maurelli, V. A. (1983). Simulating multivariate nonnormal distributions. Psychometrika, 48(3), 465-471.
sigma.target <- matrix(c(1, 0.5, 0.5, 1), 2)
my.samples <- rVM(N = 1000, sigma.target, skewness = c(1, 2),
excesskurtosis = c(2, 7), reps = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.