View source: R/sn.fit.robust.R
| sn.fit.robust | R Documentation |
Fits a skew-normal distribution by MLE, then falls back to default penalized MLE and matching-prior penalized MLE when necessary.
sn.fit.robust(data = NULL, para_form = c("DP", "CP"))
data |
A numeric vector containing at least 10 finite observations. |
para_form |
Parameterization of the result: |
Robustness here concerns numerical fitting failures, not resistance to outliers or model contamination.
A named numeric vector containing parameter estimates and standard errors.
If all fitting procedures fail, all entries are NA.
set.seed(123)
x <- sn::rsn(100, xi = 0, omega = 1, alpha = 5)
sn.fit.robust(x, "DP")
sn.fit.robust(x, "CP")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.