| family {base} | R Documentation |
Family Objects for Models
Description
Family objects provide a convenient way to specify the details of the
models used by functions such as glm. See the
documentation for glm for the details on how such model
fitting takes place.
Usage
family(object)
binomial(link = "logit")
gaussian(link ="identity")
Gamma(link = "inverse")
inverse.gaussian(link = "1/mu^2")
poisson(link = "log")
quasi(link = "identity", variance = "constant")
print.family(x, ...)
Arguments
link |
a specification for the model link function.
The The other families have only one permissible link function:
|
variance |
for all families, other than |
object |
the function |
References
McCullagh P. and J. A. Nelder (1989). Generalized Linear Models. London: Chapman and Hall.
Dobson, A. J. (1983). An Introduction to Statistical Modelling. London: Chapman and Hall.
Cox, D. R. and E. J. Snell (1981). Applied Statistics; Principles and Examples. London: Chapman and Hall.
See Also
glm, power.
Examples
nf <- gaussian()# Normal family
nf
str(nf)# internal STRucture
gf <- Gamma()
gf
str(gf)
gf$linkinv
all(1:10 == gf$linkfun(gf$linkinv(1:10)))# is TRUE
gf$variance(-3:4) #- == (.)^2