Learn R Programming

systemfit (version 0.5-6)

summary.systemfit.twostage: summary.systemfit.twostage

Description

This function returns a summary of the system of equations.

Usage

summary.systemfit.twostage(object,...)

Arguments

object
an object of type twostage.systemfit.
...
not used by user.

Value

  • summary.systemfit.twostage returns an object of type systemfit.ols.

See Also

ols,twostage,surand threestage

Examples

Run this code
library( systemfit )

data( kmenta )
attach( kmenta )
demand <- q ~ p + d
supply <- q ~ p + f + a
inst <- ~ d + f + a
labels <- list( "demand", "supply" )
system <- list( demand, supply )

## perform 2SLS on each of the equations in the system
fit2sls <- twostage.systemfit( system, inst, labels, kmenta )

## print the results
print( fit2sls )

Run the code above in your browser using DataLab