sn.mmle(X, y, plot.it=TRUE, trace=FALSE, ...)NAs) 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 (NAs) 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.mlencol(X)+2 with estimates of the direct parametersInf for the
DP parameters); see Azzalini and Capitanio (1999) for a discussion
of this aspect.
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. (2003). Bias prevention of maximum likelihood estimates: skew normal and skew t distributions. Working paper 2003-1, Department of Statistical Sciences, University of Padua. Submitted.
sn.mle, sn.Einfodata(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