powered by
Calculates the parameters of composed-error distribution based on the provided moments.
mom2par(mean = 0, sd = 1, skew = 0, s = -1, distr = "normhnorm")
Returns a matrix where the first column corresponds to \(\mu\), the second to \(\sigma_V\) and the third to \(\sigma_U\).
numeric vector of means.
numeric vector of standard deviations. Must be positive.
numeric vector of skewness. s*skew must be positive.
s*skew
integer; \(s=-1\) for production and \(s=1\) for cost function.
string; determines the distribution: `normhnorm`, Normal-halfnormal distribution `normexp`, Normal-exponential distribution
See dcomper for details of the distribution. For the inverse transformation see par2mom.
dcomper
par2mom
mom2par(mean=0, sd=1, skew=-0.5, s=-1, distr="normhnorm") mom2par(mean=0, sd=1, skew=-1, s=-1, distr="normexp")
Run the code above in your browser using DataLab