Last chance! 50% off unlimited learning
Sale ends in
skewnormal1(lshape = "identity", earg = list(), ishape = NULL, nsimEIM=NULL)
Links
for more choices.earg
in Links
for general information."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
,
and vgam
. The mean of the distribution is
$\mu=\alpha \sqrt{2/(\pi (1+\alpha^2))}$
and these are returned as the fitted values.
The variance of the distribution is $1-\mu^2$.
The Newton-Raphson algorithm is used unless the nsimEIM
argument is used.
Azzalini, A. and Capitanio, A. (1999) Statistical applications of the multivariate skew-normal distribution. Journal of the Royal Statistical Society, Series B, Methodological, 61, 579--602.
snorm
,
normal1
,
fnormal1
.y = rsnorm(n <- 1000, shape=5)
fit = vglm(y ~ 1, skewnormal1, trace=TRUE)
coef(fit, matrix=TRUE)
fitted(fit)[1:4,]
mean(y)
hist(y, prob=TRUE)
x = seq(min(y), max(y), len=200)
lines(x, dsnorm(x, shape=Coef(fit)), col="blue")
x = runif(n)
y = rsnorm(n, shape=1 + 2*x)
fit = vglm(y ~ x, skewnormal1, trace=TRUE, crit="coef")
summary(fit)
Run the code above in your browser using DataLab