fitted.sfaFLW: Returning Fitted Values

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fitted.sfaFLW.R

Description

This method returns the fitted values of semiparametric stochastic frontier models estimated with function sfaFLW.

Usage

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

Arguments

object

a semiparametric stochastic frontier model estimated with function sfaFLW.

which

If "first", the fitted values of the nonparametric regression (first step) are returned; if "frontier" (the default), the (bias-corrected) fitted values of the frontier function are returned.

...

currently ignored.

Value

A numeric vector containing the fitted values.

Author(s)

Arne Henningsen

See Also

sfaFLW, fitted, residuals.sfaFLW, gradients.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 )
    
  # fitted values of the nonparametric regression (first step)
  fitted( FLW_Result, which = "first" )

  # bias-corrected fitted values of the frontier function
  fitted( FLW_Result )

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