genData.mnonr: genData.mnonr

View source: R/simulate.R

genData.mnonrR Documentation

genData.mnonr

Description

Generates random data conforming to a population variance-covariance matrix using the approach by Qu, Liu, & Zhang (2020) specifying Mardia's multivariate skewness and kurtosis.

Usage

genData.mnonr(
  N = NULL,
  Sigma = NULL,
  nSets = 1,
  skewness = NULL,
  kurtosis = NULL
)

Arguments

N

sample size.

Sigma

population covariance matrix.

nSets

number of data sets to generate

skewness

multivariate skewness. May not be negative.

kurtosis

multivariate kurtosis. Must be >= 1.641 skewness + p (p + 0.774), where p is the number of variables.

Details

This function is a wrapper for the respective function of the mnonr package.

For details, see Qu, W., Liu, H., & Zhang, Z. (2020). A method of generating multivariate non-normal random numbers with desired multivariate skewness and kurtosis. Behavior Research Methods, 52, 939-946. doi: 10.3758/s13428-019-01291-5

Value

Returns the generated data


semPower documentation built on Sept. 30, 2024, 9:24 a.m.