sn.mmle(X, y, plot.it=TRUE, trace=FALSE, ...)
st.mmle(X, y, df, trace=FALSE)
NA
s) are not allowed.X
is missing, then a one-column matrix of all 1's is created.
If X
has only one column, then it is assumed to be made of 1's.
Missing values (NA
s) are not allowed.plot.it=TRUE
(default),
a plot of the nonparametric estimate of variable y
(or the residuals,
in the case of regression), and the parametric fit is superimposed.
See below for details.trace=TRUE
, details are printed. Default value is FALSE
.sn.mle
sn.mmle
, a list containing the following components:ncol(X)+2
with estimates of the direct parametersst.mmle
only the call
and dp
components are returnedInf
for the
DP parameters); see Azzalini and Capitanio (1999) for a discussion
of this aspect in the SN case.
To avoid this situation, an alternative estimation criterion is the
method of Sartori-Firth, which involves first regular maximum estimation
and subsequent re-estimation of the shape parameter using a modified
score function; see the references below for a full discussion.
The effect of this modification is "negligible" for large sample size,
but it avoids estimates of the frontier of the parameter space.sm.density
of the library sm
is searched. If sm.density
is not found, an histogram is plotted.Firth, D. (1993). Bias reduction of maximum likelihood estimates. Biometrika 80, 27--38. (Corr: 95V82 p.667).
Sartori, N. (2006). Bias prevention of maximum likelihood estimates for scalar skew normal and skew $t$ distributions. J. Statist. Plann. Inf. 136, 4259--4275.
sn.mle
, sn.Einfo
data(ais, package="sn")
attach(ais)
a <- sn.mmle(y=bmi)
#
M <- model.matrix(~lbm+sex)
b <- sn.mmle(M,bmi)
Run the code above in your browser using DataLab