This is the core analysis engine for a single PC index. It builds and compares models and creates plots for significant models. It uses the robust jtools::effect_plot for all visualizations, including interactions.

test_fused_component_set(
  data,
  pc_index,
  outcome,
  covariates,
  modality_prefixes,
  random_effects = NULL,
  predictoroperator = "+",
  plot_interaction_with = NULL,
  outcome_label = NULL,
  predictor_name_map = NULL,
  verbose = FALSE,
  interact_with_all = FALSE,
  p_threshold = 0.05,
  ...
)

Arguments

p_threshold

A numeric p-value (default 0.05). Plots are only generated for models with an overall p-value below this threshold.

...

Arguments passed down to test_fused_component_set, including p_threshold.

Value

A list containing summary_stats, combined_plot (which may be NULL), effect_sizes, and coefficients.