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