rnonnorm: Non-normal Distribution

View source: R/rnonnorm.R

rnonnormR Documentation

Non-normal Distribution

Description

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

Details

This function can be used to generate non-normal data with specified skewness and kurtosis using Fleishman's Power Method.

Value

A list of two objects: non-normal data is 'dat'; and the other is the Fleishman Coeffficients used to generate the distributions.

References

\insertRef

fleishman1978methoddetectnorm

Examples

set.seed(341031)
exdat <- rnonnorm(n = 100, mean = 1, sd = 2, skew = 3, kurt = 2)$dat
hist(exdat)


detectnorm documentation built on July 16, 2022, 5:05 p.m.