Skip to contents

This function performs an omnibus heterogeneity test for specified models outputted from margot::margot_run_models_grf() and provides interpretations for each result.

Usage

margot_omnibus_hetero_test(
  model_results,
  outcome_vars = NULL,
  alpha = 0.05,
  detail_level = "standard"
)

Arguments

model_results

A list of model results from margot::margot_run_models_grf().

outcome_vars

Optional. A character vector of outcome variable names. If NULL, the function will attempt to use the outcome_vars from the model_results input.

alpha

Significance level for hypothesis tests. Default is 0.05.

detail_level

Character string specifying the level of detail in the output. Options are "basic", "standard" (default), or "detailed".

Value

A list containing a summary table and interpretations. The summary table includes mean and differential predictions with standard errors. Interpretations provide detailed analysis of the test calibration results.