coef

learning R programming
Articles ETC.
admin
Site Admin
Posts:7390
Joined:Wed Mar 13, 2019 6:42 am
Contact:
coef

Post by admin » Mon Jul 20, 2020 4:05 am

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, ...)
## Default S3 method:
coef(object, complete = TRUE, ...)
## S3 method for class 'aov'
coef(object, complete = FALSE, ...)
Arguments
object
an object for which the extraction of model coefficients is meaningful.

complete
for the default (used for lm, etc) and aov methods: logical indicating if the full coefficient vector should be returned also in case of an over-determined system where some coefficients will be set to NA, see also alias. Note that the default differs for lm() and aov() results.

...
other arguments.

Post Reply