Skip to content

Commit b55eb7c

Browse files
author
acp29
committed
Update bootnhst.m
1 parent 3c7b819 commit b55eb7c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

inst/bootnhst.m

+11-8
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@
134134
% gnames corresponds to the numbers used to identify GROUPs
135135
% in columns 1 and 2 of the output argument c
136136
% ref - reference group
137-
% groups - bootfun for each group with pooled standard error, and lower
138-
% and upper bootstrap-t confidence intervals, which have
139-
% coverage such that they overlap with eachother if the ref
140-
% input argument is 'pairwise', or with the reference group,
141-
% at a FWER-controlled p-value of greater than 0.05.
137+
% groups - bootfun for each group with sample size, standard error,
138+
% and lower and upper bootstrap-t confidence intervals, which
139+
% have coverage such that they overlap with eachother if the
140+
% ref input argument is 'pairwise', or with the reference
141+
% group, at a FWER-controlled p-value of greater than 0.05.
142+
% Var - weighted mean (pooled) sampling variance
142143
% stat - omnibus test statistic (q)
143144
% nboot - number of bootstrap resamples
144145
% bootstat - test statistic computed for each bootstrap resample
@@ -380,9 +381,11 @@
380381
stats.ref = ref;
381382
stats.groups = zeros(k,4);
382383
stats.groups(:,1) = theta;
383-
stats.groups(:,2) = sqrt(Var);
384-
stats.groups(:,3) = theta - sqrt(Var/2) * interp1(cdf,QS,1-alpha,'linear');
385-
stats.groups(:,4) = theta + sqrt(Var/2) * interp1(cdf,QS,1-alpha,'linear');
384+
stats.groups(:,2) = nk;
385+
stats.groups(:,3) = SE;
386+
stats.groups(:,4) = theta - sqrt(Var/2) * interp1(cdf,QS,1-alpha,'linear');
387+
stats.groups(:,5) = theta + sqrt(Var/2) * interp1(cdf,QS,1-alpha,'linear');
388+
stats.Var = Var;
386389
stats.stat = q;
387390
stats.nboot = nboot;
388391
stats.bootstat = Q;

0 commit comments

Comments
 (0)