Learn R Programming

micEconCES (version 1.0-2)

durbinWatsonTest.cesEst: Durbin Watson Test for Estimated CES Functions

Description

Conduct a generalized Durbin-Watson-Test as suggested by White (1992) to test for serial correlation of the residuals. dwt is an abbreviation for durbinWatsonTest.

Usage

# S3 method for cesEst
durbinWatsonTest( model, ... )

Arguments

model

object returned by cesEst; in the call to cesEst, argument returnGrad must be set to TRUE.

...

further arguments are passed to durbinWatsonTest.lm.

Author

Arne Henningsen

References

White, K.J. (1992): The Durbin-Watson Test for Autocorrelation in Nonlinear Models. The Review of Economics and Statistics 74(2), p. 370-373.

See Also

Examples

Run this code
   data( germanFarms, package = "micEcon" )
   # output quantity:
   germanFarms$qOutput <- germanFarms$vOutput / germanFarms$pOutput
   # quantity of intermediate inputs
   germanFarms$qVarInput <- germanFarms$vVarInput / germanFarms$pVarInput

   ## CES: Land & Intermediate Inputs
   cesLandInt <- cesEst( yName = "qOutput",
      xNames = c( "land", "qVarInput" ), data = germanFarms,
      returnGrad = TRUE )

   # conduct the generalized Durbin-Watson test
   dwt( cesLandInt ) 

Run the code above in your browser using DataLab