# 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)
Run the code above in your browser using DataLab