Simple Bootstrap-Based Interaction Estimation with CI Level Control
Source:R/boot_interaction_effect.R
boot_interaction_effect.Rd
Estimates variability in the condition-by-ancestry interaction effect using non-stratified bootstrap resampling.
Usage
boot_interaction_effect(
X,
Y,
MX,
MY,
g_col,
a_col = NULL,
B = 1000,
seed = NULL,
alpha = 0.05
)
Arguments
- X
Expression matrix for ancestry A (samples x genes)
- Y
Expression matrix for ancestry B (samples x genes)
- MX
Metadata for X (must include group column)
- MY
Metadata for Y
- g_col
Column in metadata for condition/group (factor with 2 levels)
- B
Number of bootstrap samples
- seed
Optional seed for reproducibility
- alpha
Significance level (e.g., 0.05 for 95% CI)