Learn R Programming

fRegression (version 4021.83)

residuals-methods: Extract Regression Model Residuals

Description

Extracts residuals from a fitted regression object.

Usage

# S4 method for fREG
residuals(object)

Arguments

object

an object of class fREG as returned from the function regFit() or gregFit().

Methods

object = "ANY"

Generic function

object = "fREG"

Residuals

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")
   
## residuals - 
   residuals(fit)

Run the code above in your browser using DataLab