residuals.sfaFLW: Returning Residuals

Description Usage Arguments Value Author(s) See Also Examples

View source: R/residuals.sfaFLW.R

Description

This method returns the residuals from semiparametric stochastic frontier models estimated with function sfaFLW.

Usage

1
2
## S3 method for class 'sfaFLW'
residuals( object, which = "final", ... )

Arguments

object

a semiparametric stochastic frontier model estimated with function sfaFLW.

which

If "first", the residuals of the nonparametric regression (first step) are returned; if "final" (the default), the final bias-corrected residuals are returned

...

currently ignored.

Value

A numeric vector containing the residuals.

Author(s)

Arne Henningsen

See Also

sfaFLW, residuals, fitted.sfaFLW.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  # example included in FRONTIER 4.1 (cross-section data)
  data( front41Data, package = "frontier" )

  # semiparametric local-constant Cobb-Douglas production frontier
  FLW_Result <- sfaFLW( log( output ) ~ log( capital ) + log( labour ),
    data = front41Data )
    
  # residuals of the nonparametric regression (first step)
  residuals( FLW_Result, which = "first" )

  # bias-corrected residuals
  residuals( FLW_Result )

npFrontier documentation built on May 2, 2019, 4:48 p.m.