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)

fRegression documentation built on Nov. 17, 2017, 2:27 p.m.