residuals.selm: Residuals and fitted values from 'selm' fits

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/sn-funct.R

Description

residuals and fitted methods for classes "selm" and "mselm".

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'selm'
residuals(object, param.type = "CP", ...)
## S4 method for signature 'mselm'
residuals(object, param.type = "CP", ...)
## S4 method for signature 'selm'
fitted(object, param.type = "CP", ...)
## S4 method for signature 'mselm'
fitted(object, param.type = "CP", ...)

Arguments

object

an object of class "selm" or "mselm" as created by a call to function selm.

param.type

a character string which indicates the required type of parameter type; possible values are "CP" (default), "DP", "pseudo-CP" and their equivalent lower-case expressions.

...

not used, included for compatibility with the generic method.

Value

a numeric vector (for selm-class objects) or a matrix (for mselm-class objects).

Note

The possible options of param.type are described in the documentation of dp2cp; their corresponding outcomes differ by an additive constant only. With the "CP" option (that is, the ‘centred parametrization’), the residuals are centred around 0, at least approximately; this is a reason for setting "CP" as the default option. For more information, see the ‘Note’ in the documentation of summary.selm.

Author(s)

Adelchi Azzalini

References

Azzalini, A. with the collaboration of Capitanio, A. (2014). The Skew-Normal and Related Families. Cambridge University Press, IMS Monographs series.

See Also

dp2cp, summary.selm, selm function, selm-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
data(wines, package="sn")
m5 <- selm(acidity ~ phenols + wine, family="SN", data=wines)
residuals(m5)
residuals(m5, "dp")
fitted(m5, "dp")
#
m12 <- selm(cbind(acidity, alcohol) ~ phenols + wine,  family="SN", data=wines)
residuals(m12)
#
# see other examples at function selm

sn documentation built on May 29, 2017, 7:18 p.m.