|
134 | 134 | % gnames corresponds to the numbers used to identify GROUPs
|
135 | 135 | % in columns 1 and 2 of the output argument c
|
136 | 136 | % 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 |
142 | 143 | % stat - omnibus test statistic (q)
|
143 | 144 | % nboot - number of bootstrap resamples
|
144 | 145 | % bootstat - test statistic computed for each bootstrap resample
|
|
380 | 381 | stats.ref = ref;
|
381 | 382 | stats.groups = zeros(k,4);
|
382 | 383 | 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; |
386 | 389 | stats.stat = q;
|
387 | 390 | stats.nboot = nboot;
|
388 | 391 | stats.bootstat = Q;
|
|
0 commit comments