Learn R Programming

dsfa (version 2.0.2)

par2mom: Parameter to Moments

Description

Calculates the moments of composed-error distribution based on the provided parameters.

Usage

par2mom(mu = 0, sigma_v = 1, sigma_u = 1, s = -1, distr = "normhnorm")

Value

Returns a matrix where the first column corresponds to the mean, the second to the standard deviation and the third to the skewness.

Arguments

mu

numeric vector of \(\mu\).

sigma_v

numeric vector of \(\sigma_V\). Must be positive.

sigma_u

numeric vector of \(\sigma_U\). Must be positive.

s

integer; \(s=-1\) for production and \(s=1\) for cost function.

distr

string; determines the distribution:
`normhnorm`, Normal-halfnormal distribution
`normexp`, Normal-exponential distribution

Details

See dcomper for details of the distribution. For the inverse transformation see mom2par.

Examples

Run this code
par2mom(mu=0, sigma_v=1, sigma_u=1, s=-1, distr="normhnorm")
par2mom(mu=0, sigma_v=1, sigma_u=1, s=-1, distr="normexp")

Run the code above in your browser using DataLab