R/fitted.sfaFLW.R

Defines functions fitted.sfaFLW

Documented in fitted.sfaFLW

fitted.sfaFLW <- function( object, which = "frontier", ... ) {
  if( which == "frontier" ) {
    fit <- fitted( object$npreg ) + object$mu
  } else if( which == "first" ) {
    fit <- fitted( object$npreg )
  } else {
    stop( "argument 'which' must be either \"first\" or \"frontier\"" )
  }
  return( fit )
}

Try the npFrontier package in your browser

Any scripts or data that you put into this service are public.

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