calculate_linear_vimp {tidyhte}R Documentation

Calculate Linear Variable Importance of HTEs

Description

calculate_linear_vimp estimates the linear hypothesis test of removing a particular moderator from a linear model containing all moderators. Unlike calculate_vimp, this will only be unbiased and have correct asymptotic coverage rates if the true model is linear. This linear approach is also substantially faster, so may be useful when prototyping an analysis.

Usage

calculate_linear_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_vimp()


[Package tidyhte version 1.0.2 Index]