eempf_varimp {staRdom} | R Documentation |
Calculate the importance of each component.
Description
Calculate the importance of each component.
Usage
eempf_varimp(
pfmodel,
eem_list,
cores = parallel::detectCores(logical = FALSE),
...
)
Arguments
pfmodel |
model of class parafac |
eem_list |
eemlist used to calculate that model |
cores |
cores to be used for the calculation |
... |
other aruments passed to eem_parafac |
Details
The importance of each variable is calculated by means of creating a model without a specific component and calculating the difference between the original R-squared and the one with the left out component. The derived values state the loss in model fit if one component is not used in the modeling process. For the creation of the new models, the exact components of the original model are used.
Value
numeric vector, values are in the same order of the components in the supplied model.
Examples
data(pfmodel)
data(eem_list)
eempf_varimp(pf4[[1]], eem_list, cores = 2)
[Package staRdom version 1.1.28 Index]