terms.systemfit: Model Terms of systemfit Objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/terms.systemfit.R

Description

This method extracts the model terms from fitted objects returned by systemfit.

Usage

1
2
3
4
   ## S3 method for class 'systemfit'
terms( x, ... )
   ## S3 method for class 'systemfit.equation'
terms( x, ... )

Arguments

x

an object of class systemfit.

...

currently not used.

Value

terms.systemfit.equation returns the model terms of a single equation of a systemfit object. terms.systemfit.equation returns a list of model terms: one model term object for each equation of the systemfit object.

Author(s)

Arne Henningsen [email protected]

See Also

systemfit, terms

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data( "Kmenta" )
eqDemand <- consump ~ price + income
eqSupply <- consump ~ price + farmPrice + trend
system <- list( demand = eqDemand, supply = eqSupply )

## perform a SUR estimation
fitsur <- systemfit( system, "SUR", data = Kmenta )

## model terms of the second equation
terms( fitsur$eq[[ 2 ]] )

## all model terms of the system
terms( fitsur )

systemfit documentation built on May 31, 2017, 3:51 a.m.