Learn R Programming

sn (version 1.2-2)

selm-class: Classes selm and mselm of objects created by function selm

Description

A successful call to function selm creates an object of either of these classes, having a structure described in section Slots. A set of methods for these classes of objects exist, listed in section Methods.

Arguments

Objects from the class

An object can be created by a successful call to function selm.

Methods

ll{ coef signature(object = "selm"): ... logLik signature(object = "selm"): ... plot signature(x = "selm"): ... show signature(object = "selm"): ... summary signature(object = "selm"): ... residuals signature(object = "selm"): ... fitted signature(object = "selm"): ... vcov signature(object = "selm"): ... weights signature(object = "selm"): ... coef signature(object = "mselm"): ... logLik signature(object = "mselm"): ... plot signature(x = "mselm"): ... show signature(object = "mselm"): ... summary signature(object = "mselm"): ... residuals signature(object = "mselm"): ... fitted signature(object = "mselm"): ... vcov signature(object = "mselm"): ... weights signature(object = "mselm"): ... }

See Also

See also selm function, plot.selm, summary.selm, dp2cp

Examples

Run this code
data(ais)
m1 <- selm(log(Fe) ~ BMI + LBM, family="SN", data=ais)
summary(m1)
plot(m1)
logLik(m1)
res <- residuals(m1)
fv <- fitted(m1)
# 
data(wines, package="sn")
m2 <- selm(alcohol ~ malic + phenols, data=wines)
#
m12 <- selm(cbind(acidity, alcohol) ~ phenols + wine, family="SN", data=wines)
coef(m12)
cp <- coef(m12, vector=FALSE)
dp <- coef(m12, "DP", vector=FALSE)
plot(m12)
plot(m12, which=2, col="gray60", pch=20)

Run the code above in your browser using DataLab