mom2par {dsfa} | R Documentation |
Calculates the parameters of composed-error distribution based on the provided moments.
mom2par(mean = 0, sd = 1, skew = 0, s = -1, distr = "normhnorm")
mean |
numeric vector of means. |
sd |
numeric vector of standard deviations. Must be positive. |
skew |
numeric vector of skewness. |
s |
integer; |
distr |
string; determines the distribution: |
See dcomper()
for details of the distribution. For the inverse transformation see par2mom()
.
Returns a matrix where the first column corresponds to \mu
, the second to \sigma_V
and the third to \sigma_U
.
mom2par(mean=0, sd=1, skew=-0.5, s=-1, distr="normhnorm")
mom2par(mean=0, sd=1, skew=-1, s=-1, distr="normexp")