Learn R Programming

frontier (version 0.9-6)

coef.frontier: coef method for class frontier

Description

Extract the coefficients from stochastic frontier models returned by frontier.

Usage

## S3 method for class 'frontier':
coef( object, which = "mle", ... )

Arguments

object
an object of class frontier (returned by the function frontier).
which
character string. Which coefficients should be returned? ('start' for starting values provided by the user, 'ols' for coefficients estimated by OLS, 'grid' for coefficients obtained by the grid search, or 'mle' for coefficients est
...
currently unused.

Value

  • coef.frontier returns a named vector of the coefficients.

Examples

Run this code
# example included in FRONTIER 4.1
   data( front41Data )
   front41Data$logOutput  <- log( front41Data$output )
   front41Data$logCapital <- log( front41Data$capital )
   front41Data$logLabour  <- log( front41Data$labour )

   sfa <- frontier( front41Data, "firm", "time", "logOutput",
      c( "logCapital", "logLabour" ) )
   coef( sfa, which = "ols" )
   coef( sfa, which = "grid" )
   coef( sfa )

Run the code above in your browser using DataLab