Skip to content

Commit 852aeff

Browse files
committed
bootridge: minor change in the documentation
1 parent 235fe15 commit 852aeff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/bootridge.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
% The upper bound on the probability that any one specific coefficient
254254
% identified as "stable" (i.e., exceeding the stability threshold of
255255
% 1 - ALPHA / 2) is a false positive. This is calculated as:
256-
% PFER / (number of slope coefficients * number of outcomes).
256+
% min (PFER / (no. of slope coefficients * no. of outcomes), 1)
257257
%
258258
% o RTAB
259259
% Matrix summarizing residual correlations (strictly lower-
@@ -732,7 +732,7 @@
732732
p = q * (n - 1);
733733
pi_thr = 1 - alpha / 2;
734734
pfer = 1 / (2 * pi_thr - 1) * (q_avg^2 / p);
735-
pcer = min (1, pfer / p);
735+
pcer = min (pfer / p, 1);
736736

737737
% Correct stability selection probabilities for the design effect
738738
stdnormcdf = @(x) 0.5 * (1 + erf (x / sqrt (2)));

0 commit comments

Comments
 (0)