par2mom {dsfa}R Documentation

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")

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().

Value

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

Examples

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")


[Package dsfa version 2.0.1 Index]