Learn R Programming

systemfit (version 0.8-0)

summary.systemfit: Summary of systemfit estimation

Description

These functions create and print summary results of the estimated equation system.

Usage

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

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

## S3 method for class 'summary.systemfit': print( x, digits = 6, ... )

## S3 method for class 'summary.systemfit.equation': print( x, digits = 6, ... )

Arguments

object
an object of class systemfit or systemfit.equation.
x
an object of class summary.systemfit or summary.systemfit.equation.
digits
number of digits to print.
...
not used by user.

See Also

systemfit, print.systemfit

Examples

Run this code
data( "Kmenta" )
demand <- consump ~ price + income
supply <- consump ~ price + farmPrice + trend
inst <- ~ income + farmPrice + trend
labels <- list( "demand", "supply" )
system <- list( demand, supply )

## perform OLS on each of the equations in the system
fitols <- systemfit( "OLS", system, labels, data = Kmenta )

## results of the whole system
summary( fitols )

## results of the first equation
summary( fitols$eq[[1]] )

## results of the second equation
summary( fitols$eq[[2]] )

Run the code above in your browser using DataLab