moment2GH {param2moment}R Documentation

Solve Tukey gg-&-hh Parameters from Moments

Description

Solve Tukey gg-, hh- and gg-&-hh distribution parameters from mean, standard deviation, skewness and kurtosis.

Usage

moment2GH(mean = 0, sd = 1, skewness, kurtosis)

moment2GH_h_demo(sd = 1, kurtosis)

moment2GH_g_demo(mean = 0, sd = 1, skewness)

Arguments

mean

numeric scalar, mean μ\mu, default value 0

sd

numeric scalar, standard deviation σ\sigma, default value 1

skewness

numeric scalar

kurtosis

numeric scalar

Details

Function moment2GH solves the location AA, scale BB, skewness gg and elongation hh parameters of Tukey gg-&-hh distribution, from user-specified mean μ\mu (default 0), standard deviation σ\sigma (default 1), skewness and kurtosis.

An educational and demonstration function moment2GH_h_demo solves (B,h)(B, h) parameters of Tukey hh-distribution, from user-specified σ\sigma and kurtosis. This is a non-skewed distribution, thus the location parameter A=μ=0A=\mu=0, and the skewness parameter g=0g=0.

An educational and demonstration function moment2GH_g_demo solves (A,B,g)(A, B, g) parameters of Tukey gg-distribution, from user-specified μ\mu, σ\sigma and skewness. For this distribution, the elongation parameter h=0h=0.

Value

Function moment2GH returns a length-4 numeric vector (A,B,g,h)(A, B, g, h).

Function moment2GH_h_demo returns a length-2 numeric vector (B,h)(B, h).

Function moment2GH_g_demo returns a length-3 numeric vector (A,B,g)(A, B, g).

Examples

moment2GH(skewness = .2, kurtosis = .3)

moment2GH_h_demo(kurtosis = .3)

moment2GH_g_demo(skewness = .2)


[Package param2moment version 0.1.2 Index]