Learn R Programming

frontier (version 1.1-8)

resettestFrontier: RESET test for Stochastic Frontier Models

Description

Generalized Ramsey's RESET test (REgression Specification Error Test) for misspecification of the functional form based on a Likelihood Ratio test.

Usage

resettestFrontier( object, power = 2:3 )

Arguments

object

a fitted model object of class frontier.

power

a vector indicating the powers of the fitted variables that should be included as additional explanatory variables. By default, the test is for quadratic or cubic influence of the fitted response.

Value

An object of class anova as returned by lrtest.frontier.

References

Ramsey, J.B. (1969), Tests for Specification Error in Classical Linear Least Squares Regression Analysis. Journal of the Royal Statistical Society, Series B 31, 350-371.

See Also

sfa, resettest, and lrtest.frontier

Examples

Run this code
# NOT RUN {
   # load data set
   data( front41Data )

   # estimate a Cobb-Douglas production frontier
   cobbDouglas <- sfa( log( output ) ~ log( capital ) + log( labour ),
      data = front41Data )
   
   # conduct the RESET test
   resettestFrontier( cobbDouglas )
# }

Run the code above in your browser using DataLab