print.hausman.systemfit {systemfit} | R Documentation |
This function prints the results of a Hausman test.
## S3 method for class 'hausman.systemfit': print( x, digits=6, ... )
x |
an object of type hausman.systemfit . |
digits |
number of digits to print. |
... |
other arguments. |
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
## Not run: library( systemfit ) data( kmenta ) demand <- q ~ p + d supply <- q ~ p + f + a inst <- ~ d + f + a labels <- list( "demand", "supply" ) system <- list( demand, supply ) ## perform the estimations fit2sls <- systemfit( "2SLS", system, labels, inst, data = kmenta ) fit3sls <- systemfit( "3SLS", system, labels, inst, data = kmenta ) ## perform the Hausman test h <- hausman.systemfit( fit2sls, fit3sls ) print( h )