residuals.systemfit.equation {systemfit} | R Documentation |
This function extracts the residuals of one equation
from an object returned by
systemfit
.
## S3 method for class 'systemfit.equation': residuals( object, ...)
object |
an object of type systemfit.equation . |
... |
other arguments. |
residuals.systemfit.equation
returns a vector of residuals.
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
systemfit
, residuals.systemfit
and residuals
## Not run: library( systemfit ) data( kmenta ) attach( kmenta ) demand <- q ~ p + d supply <- q ~ p + f + a labels <- list( "demand", "supply" ) system <- list( demand, supply ) ## perform OLS on each of the equations in the system fitols <- systemfit( "OLS", system, labels ) ## print the residuals of the first equation residuals( fitols$eq[[1]] ) ## print the residuals of the second equation residuals( fitols$eq[[2]] )