Generating Non-normal data with specified skewness and kurtosis using Fleishman's Method
Usage
rnonnorm(n, mean = 0, sd = 1, skew = 0, kurt = 0)
Arguments
- n
number of observations
- mean
mean
- sd
standard deviation
- skew
skewness
- kurt
kurtosis
Value
A list of two objects: non-normal data is `dat`; and the other is the Fleishman Coeffficients used to generate the distributions.
Details
This function can be used to generate non-normal data with specified skewness and kurtosis using Fleishman's Power Method.
References
Fleishman AI (1978).
“A method for simulating non-normal distributions.”
Psychometrika, 43(4), 521--532.
Examples
set.seed(341031)
exdat <- rnonnorm(n = 100, mean = 1, sd = 2, skew = 3, kurt = 2)$dat
hist(exdat)