fitted.systemfit.equation {systemfit}R Documentation

Fitted values

Description

This function extracts the fitted values of one equation from an object returned by systemfit.

Usage

   ## S3 method for class 'systemfit.equation':
   fitted( object, ... )

Arguments

object an object of type systemfit.equation.
... other arguments.

Value

fitted.systemfit.equation returns the vector of fitted values.

Author(s)

Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

See Also

systemfit, fitted.systemfit and fitted

Examples

## 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 fitted values of the first equation
fitted( fitols$eq[[1]] )

## print the fitted values of the second equation
fitted( fitols$eq[[2]] )

[Package systemfit version 0.7-3 Index]