Skip to Content

coef {stats}

Extract Model Coefficients
Package: 
stats
Version: 
R 3.0.2

Description

coef is a generic function which extracts model coefficients from objects returned by modeling functions. coefficients is an alias for it.

Usage

coef(object, ...)
coefficients(object, ...)

Arguments

object
an object for which the extraction of model coefficients is meaningful.
...
other arguments.

Details

All object classes which are returned by model fitting functions should provide a coef method or use the default one. (Note that the method is for coef and not coefficients.)

Class "aov" has a coef method that does not report aliased coefficients (see alias).

Values

Coefficients extracted from the model object object.

For standard model fitting classes this will be a named numeric vector.

References

Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole.

See Also

fitted.values and residuals for related methods; glm, lm for model fitting.

Examples

x <- 1:5; coef(lm(c(1:3, 7, 6) ~ x))

Documentation reproduced from R 3.0.2. License: GPL-2.

Comments

kinneybowles's picture

constantly checking the settings specially after the update to avoid changes or reset thoiugh i always watch free movies online download

michelle20's picture

Coefficient buy facebook fans cheap of determination is used in trend analysis. It is computed as a value between 0 and 1. The higher the value, the better the fit. Coefficient of determination is symbolized by r2 because it is square of the coefficient of correlation symbolized by r. The coefficient of determination is an important tool in determining the degree of linear-correlation of variables ('goodness of fit') in regression analysis.buy facebook followers.