View source: R/formula.systemfit.R
formula.systemfit | R Documentation |
This method extracts the model formulae
from fitted objects returned by systemfit
.
## S3 method for class 'systemfit'
formula( x, ... )
## S3 method for class 'systemfit.equation'
formula( x, ... )
x |
an object of class |
... |
currently not used. |
formula.systemfit.equation
returns the formula
of a single equation of a systemfit
object.
formula.systemfit.equation
returns a list of formulae:
one formula object for each equation
of the systemfit
object.
Arne Henningsen arne.henningsen@googlemail.com
systemfit
, formula
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 )
## formula of the second equation
formula( fitsur$eq[[2]] )
## all formulae of the system
formula( fitsur )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.