calculate_vimp {tidyhte}R Documentation

Calculate Variable Importance of HTEs

Description

calculate_vimp estimates the reduction in (population) $R^2$ from removing a particular moderator from a model containing all moderators.

Usage

calculate_vimp(
  full_data,
  weight_col,
  pseudo_outcome,
  ...,
  .VIMP_cfg,
  .Model_cfg
)

Arguments

full_data

dataframe

weight_col

Unquoted name of the weight column.

pseudo_outcome

Unquoted name of the pseudo-outcome.

...

Unquoted names of covariates to include in the joint effect model. The variable importance will be calculated for each of these covariates.

.VIMP_cfg

A VIMP_cfg object defining how VIMP should be estimated.

.Model_cfg

A Model_cfg object defining how the joint effect model should be estimated.

References

See Also

calculate_linear_vimp()


[Package tidyhte version 1.0.2 Index]