View source: R/make_malmquist.R
| make_malmquist | R Documentation | 
This function creates, from a data frame, a list of
deadata objects.
make_malmquist(datadea,
               nper = NULL,
               percol = NULL,
               arrangement  = c("horizontal", "vertical"),
               ...)
| datadea | Data frame with DEA data. | 
| nper | Number of time periods (with dataset in wide format). | 
| percol | Column of time period (with dataset in long format). | 
| arrangement | Horizontal with data in wide format. Vertical with data in long format. | 
| ... | Other options to be passed to the  | 
An object of class deadata
Vicente Coll-Serrano (vicente.coll@uv.es). Quantitative Methods for Measuring Culture (MC2). Applied Economics.
Vicente Bolós (vicente.bolos@uv.es). Department of Business Mathematics
Rafael Benítez (rafael.suarez@uv.es). Department of Business Mathematics
University of Valencia (Spain)
# Example 1. If you have a dataset in wide format.
data("Economy")
data_example <- make_malmquist(datadea = Economy, 
                               nper = 5, 
                               arrangement = "horizontal",
                               ni = 2, 
                               no = 1)
# This is the same as:
data_example <- make_malmquist(datadea = Economy,
                               nper = 5, 
                               arrangement = "horizontal",
                               inputs = 2:3, 
                               outputs = 4)
# Example 2. If you have a dataset in long format.
data("EconomyLong")
data_example2 <- make_malmquist(EconomyLong,
                                percol = 2, 
                                arrangement = "vertical",
                                inputs = 3:4, 
                                outputs = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.