Learn R Programming

fRegression (version 4021.83)

coef-methods: REG coefficients Methods

Description

Extracts coefficients from a fitted regression model.

Arguments

Methods

object = "ANY"

Generic function.

object = "fREG"

Extractor function for coefficients.

Author

Diethelm Wuertz for the Rmetrics R-port.

Examples

Run this code
## regSim -
   x = regSim(model = "LM3", n = 50)
  
## regFit -
   fit = regFit(Y ~ X1 + X2 + X3, data = x, use = "lm")
   
## coef - 
   coef(fit)

Run the code above in your browser using DataLab