methods-coef: REG coefficients Methods

Description Methods Note Author(s) Examples

Description

Extracts coefficients from a fitted regression model.

Methods

object = "ANY"

Generic function.

object = "fREG"

Extractor function for coefficients.

Note

coef is a generic function which extracts the coefficients from objects returned by modeling functions, here the regFit and gregFit parameter estimation functions.

Author(s)

Diethelm Wuertz for the Rmetrics R-port.

Examples

1
2
3
4
5
6
7
8
## regSim -
   x = regSim(model = "LM3", n = 50)
  
## regFit -
   fit = regFit(Y ~ X1 + X2 + X3, data = x, use = "lm")
   
## coef - 
   coef(fit)

Example output

Loading required package: timeDate
Loading required package: timeSeries
Loading required package: fBasics
(Intercept)          X1          X2          X3 
 -0.0130448   0.7527277   0.2828814  -0.5112529 

fRegression documentation built on May 2, 2019, 11:10 a.m.