File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
% 'N = sampszcalc (TESTTYPE, EFFSZ)' returns the required sample size to
11
11
% reach the significance level (alpha) of 0.05 in a two-tailed version of
12
12
% the test specified in TESTTYPE for the specified effect size, EFFSZ,
13
- % with a power of 0.8 (i.e. a type II error rate of 1 - 0.8 = 0.2)
13
+ % with a power of 0.8 (i.e. a type II error rate of 1 - 0.8 = 0.2). For
14
+ % two-sample tests, N corresponds to the size of each sample.
14
15
%
15
16
% TESTTYPE can be:
16
17
%
200
201
% ! % The difference between a sample mean from a zero constant (one sample test)
201
202
% ! % or the difference between two dependent means (matched pair). Sample size
202
203
% ! % determined for Cohen's d = 0.8.
203
- % ! % d effect size
204
204
% !
205
205
% ! n = sampszcalc ('t', 0.8)
206
206
207
207
% !demo
208
208
% !
209
209
% ! % The difference between two independent means (two groups). Sample size
210
- % ! % determined for Cohen's d = 0.8.
210
+ % ! % for each group determined for Cohen's d = 0.8.
211
211
% !
212
212
% ! n = sampszcalc ('t2', 0.8)
213
213
You can’t perform that action at this time.
0 commit comments