fitted: Extract fitted frontier values of classic or latent class...

fittedR Documentation

Extract fitted frontier values of classic or latent class stochastic models

Description

fitted returns the fitted frontier values from classic or latent class stochastic frontier models estimated with sfacross or lcmcross.

Usage

## S3 method for class 'sfacross'
fitted(object, ...)

## S3 method for class 'lcmcross'
fitted(object, ...)

Arguments

object

A classic or latent class stochastic frontier model returned by sfacross or lcmcross.

...

Currently ignored.

Value

In the case of an object of class 'sfacross', a vector of fitted values is returned.

In the case of an object of class 'lcmcross', a data frame containing the fitted values for each class is returned where each variable terminates with "_c#", "#" being the class number.

Note

The fitted values are ordered in the same way as the corresponding observations in the dataset used for the estimation.

Author(s)

K Hervé Dakpo, Yann Desjeux and Laure Latruffe

See Also

sfacross, for the stochastic frontier analysis model fitting function.

lcmcross, for the latent class stochastic frontier analysis model fitting function.

Examples

## Using data on eighty-two countries production (DGP)
# LCM Cobb Douglas (production function) half normal distribution
cb_2c_h <- lcmcross(formula = ly ~ lk + ll + yr, udist = 'hnormal', data = worldprod)
  fit.cb_2c_h <- fitted(cb_2c_h)
  head(fit.cb_2c_h)

sfaR documentation built on May 3, 2022, 3 p.m.