dea_panel_data() is the panel (multi-period) counterpart of
dea_data: it records, once, which columns of a long-format
data frame identify the DMU and the period and which are the inputs and
outputs, validates the panel structure, and returns an object that the
plot_panel_* functions accept directly – so the column mapping does
not have to be repeated in every call.
Arguments
- data
A data frame in long format: one row per DMU-period.
- inputs, outputs
Column selectors (names or integer positions) for the inputs and outputs. If
NULL(default), columns prefixedi_/o_are used.- id, period
Columns (name or position) identifying the DMU and the period. Defaults
"Label"and"Period".
Value
An object of class dea_panel_data: a list with the validated
data plus the resolved inputs, outputs, id and
period column names, the DMU labels, the sorted
periods, and a balanced flag.
Details
Validation: id and period must each name a single column with
no missing values, each DMU may appear at most once per period, and all
input/output columns must be numeric. As in dea_data, when
inputs/outputs are not given, columns prefixed i_ /
o_ are detected automatically.