Learn R Programming

productivity (version 1.1.0)

Levels: Productivity and profitability levels

Description

This function extracts individual productivity and profitability (when available) levels from any object created by either fareprim, fisher, hicksmoorsteen, laspeyres, lowe, malm, or paasche function.

Usage

Levels(object, …)

Arguments

object

Object of class 'FarePrimont', 'Fisher', 'HicksMoorsteen', 'Laspeyres', 'Lowe', 'Malmquist', or 'Paasche'.

Currently not used.

Value

  • In the case of F<U+00E4>re-Primont, Fisher, Laspeyres, Lowe, Malmquist, and Paasche indices, the function returns a data frame containing all the elements and observations included in the "Levels" component of object.

  • In the case of Hicks-Moorsteen index:

    • When components = FALSE (default) in the call to hicksmoorsteen, the function returns a data frame containing all the elements and observations included in the "Levels" component of the object of class 'HicksMoorsteen'.

    • When components = TRUE in the call to hicksmoorsteen, the function returns a list of three data frames:

      * HicksMoorsteen:

      A data frame containing all the elements and observations related to "Levels" component of the Hicks-Moorsteen index.

      * MalmquistHS:

      A data frame containing all the elements and observations related to "Levels" component of the Malmquist-hs index.

      * MalmquistIT:

      A data frame containing all the elements and observations related to "Levels" component of the Malmquist-it index.

Details

  • An object of class 'FarePrimont' is a result of a call to fareprim.

  • An object of class 'Fisher' is a result of a call to fisher.

  • An object of class 'HicksMoorsteen' is a result of a call to hicksmoorsteen.

  • An object of class 'Laspeyres' is a result of a call to laspeyres.

  • An object of class 'Lowe' is a result of a call to lowe.

  • An object of class 'Malmquist' is a result of a call to malm.

  • An object of class 'Paasche' is a result of a call to paasche.

See Also

For details and information on returned values, see fareprim, fisher, hicksmoorsteen, laspeyres, lowe, malm, or paasche.

See also: - Changes for productivity and profitability change indices; and - Shadowp for shadow prices.

Examples

Run this code
# NOT RUN {
  LOWE <- lowe(data = usagri, id.var = "States", time.var = "Years", x.vars = c(7:10), 
  y.vars = c(4:6), w.vars = c(14:17), p.vars = c(11:13))
  Lowe.levels <- Levels(LOWE)
  head(Lowe.levels)
# }

Run the code above in your browser using DataLab