coef-methods | R Documentation |
Extracts coefficients from a fitted regression model.
Generic function.
Extractor function for coefficients.
coef
is a generic function which extracts the coefficients
from objects returned by modeling functions, here the regFit
and gregFit
parameter estimation functions.
Diethelm Wuertz for the Rmetrics R-port.
## regSim -
x = regSim(model = "LM3", n = 50)
## regFit -
fit = regFit(Y ~ X1 + X2 + X3, data = x, use = "lm")
## coef -
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.