Borrar filtros
Borrar filtros

Bootstrapped Confidence Intervals controlling for multiple hypothesis testing ?

7 visualizaciones (últimos 30 días)
I have another question related to bootstrapped confidence intervals.
I'm currently interested in comparing differences in means of two variables using bootstrapped confidence intervals. However, I'm unsure whether and how to control for multiple hypothesis testing when computing these intervals.
I need to calculate the pvalue first, right? And then adjust these raw pvalues for multiple hypothesis testing? Any guidance on this? Thank you
n = 1000; % Number of data points
rng(42); % Set seed for reproducibility
x1 = randn(n, 1); % Random data for group 1
x2 = randn(n, 1); % Random data for group 2
% Function to compute the difference of means
boot_func = @(x1, x2) mean(x1) - mean(x2);
% Bootstrap resampling and calculation of confidence intervals
boot_samples = 10000; % Number of bootstrap samples
boot_ci = bootci(boot_samples, {boot_func, x1, x2}, 'type', 'per');
% Multiple Hypothesis testing?
% Bonferroni, Holm, Step Down?
The following function calculates p-values for the bca method, but not for the 'perc' method in bootci.
  1 comentario
the cyclist
the cyclist el 2 de Mzo. de 2024
I think your simple example here may be too simple to illustrate your question.
You only have two variables, and you are only calculating one difference of means. You don't seem to have multiple comparisons here, so there is no need to account for the testing of multiple hypotheses. (You seem to have one hypothesis: The difference in means is greater than one would see by chance, under the null hypothesis.)

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by