Learn R Programming

staRdom (version 1.1.28)

eempf_varimp: Calculate the importance of each component.

Description

Calculate the importance of each component.

Usage

eempf_varimp(
  pfmodel,
  eem_list,
  cores = parallel::detectCores(logical = FALSE),
  ...
)

Value

numeric vector, values are in the same order of the components in the supplied model.

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.

Examples

Run this code
# \donttest{
data(pfmodel)
data(eem_list)

eempf_varimp(pf4[[1]], eem_list, cores = 2)
# }

Run the code above in your browser using DataLab