Skip to content

Commit 3dfd46b

Browse files
committed
minor corrections and clarifications in documentation
1 parent a07bf81 commit 3dfd46b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/sampszcalc.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
% 'N = sampszcalc (TESTTYPE, EFFSZ)' returns the required sample size to
1111
% reach the significance level (alpha) of 0.05 in a two-tailed version of
1212
% 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.
1415
%
1516
% TESTTYPE can be:
1617
%
@@ -200,14 +201,13 @@
200201
%! % The difference between a sample mean from a zero constant (one sample test)
201202
%! % or the difference between two dependent means (matched pair). Sample size
202203
%! % determined for Cohen's d = 0.8.
203-
%! % d effect size
204204
%!
205205
%! n = sampszcalc ('t', 0.8)
206206

207207
%!demo
208208
%!
209209
%! % 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.
211211
%!
212212
%! n = sampszcalc ('t2', 0.8)
213213

0 commit comments

Comments
 (0)