This is the main user-facing function. It orchestrates analysis sweeps across multiple configurations (e.g., datasets, analysis types) and aggregates all results into a final, tidy output.

run_multiview_analysis(
  analysis_configurations,
  pc_indices,
  modality_prefixes,
  ...
)

Arguments

analysis_configurations

A named list of lists. Each inner list defines an analysis and must contain data, outcomes, covariates, dataset_name, and analysis_type. Can also contain optional overrides like random_effects.

pc_indices

A numeric vector of PC indices to sweep over for all analyses.

modality_prefixes

A character vector of component prefixes.

...

Global arguments passed down to all analysis calls, such as verbose, p_threshold, etc.

Value

A list containing three main components: summary_statistics, effect_sizes, and plots.