print.hausman.systemfit {systemfit}R Documentation

Print result of Hausman test

Description

This function prints the results of a Hausman test.

Usage

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

Arguments

x an object of type hausman.systemfit.
digits number of digits to print.
... other arguments.

Author(s)

Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

See Also

hausman.systemfit

Examples

## 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 )

[Package systemfit version 0.7-6 Index]