Trains a hexagonal self-organizing map (SOM) on the standardised input/output
data and records, for every node, the mean DEA efficiency of the DMUs mapped
to it. The result feeds plot_io_som (and other SOM views), so the
map is trained once and reused.
Usage
compute_som(
x,
rts = c("crs", "vrs"),
xdim = 8,
ydim = 8,
rlen = 1000,
seed = NULL,
...
)Arguments
- x
A
dea_dataobject, or a data frame coerced byas_dea_data.- rts
Returns to scale, passed to
compute_efficiency:"crs"or"vrs".- xdim, ydim
Grid dimensions (positive integers; default
8each).- rlen
Number of training iterations (default
1000).- seed
Optional single number; if supplied, SOM training is made reproducible without permanently changing the session's random state.
- ...
Further arguments passed to
som.
Value
An object of class dea_som: a list with the fitted
som (a kohonen object), the DMU labels, per-DMU
efficiency, per-node mean node_efficiency (NA for empty
nodes), and the grid dimensions.