Skip to content

Commit 162a876

Browse files
committed
update online manual
1 parent 672b37e commit 162a876

15 files changed

+122
-53
lines changed

docs/function/boot.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,21 @@ <h3><a name="1">Demonstration 1</a></h3>
118118

119119
Columns 1 through 8:
120120

121-
3 1 3 1 1 1 3 3
122-
3 1 3 2 1 1 2 3
123-
3 2 2 2 1 3 2 3
121+
2 3 3 2 2 2 1 1
122+
3 1 3 1 2 3 2 2
123+
2 1 3 3 2 1 2 3
124124

125125
Columns 9 through 16:
126126

127-
3 1 3 2 2 2 2 3
128-
1 2 3 1 2 2 1 1
129-
2 1 3 2 3 2 1 3
127+
3 1 3 3 2 1 2 2
128+
2 1 2 1 2 2 3 3
129+
1 2 1 2 3 1 1 1
130130

131131
Columns 17 through 20:
132132

133-
1 1 2 1
134-
3 3 2 2
135-
3 1 1 2</pre>
133+
3 3 1 1
134+
1 1 3 3
135+
2 3 3 1</pre>
136136
</div>
137137

138138
<h3><a name="2">Demonstration 2</a></h3>
@@ -147,21 +147,21 @@ <h3><a name="2">Demonstration 2</a></h3>
147147

148148
Columns 1 through 8:
149149

150-
2 3 1 2 1 2 3 1
151-
3 1 2 2 1 2 3 1
152-
3 3 1 3 1 2 3 3
150+
2 3 2 2 3 1 3 1
151+
2 1 1 2 3 2 2 1
152+
3 3 1 2 3 1 3 1
153153

154154
Columns 9 through 16:
155155

156-
2 3 1 1 3 3 2 2
157-
1 3 1 2 2 3 2 3
158-
2 2 1 2 3 1 1 3
156+
2 2 1 2 2 3 1 2
157+
1 3 3 1 3 3 1 2
158+
2 2 3 2 3 1 1 3
159159

160160
Columns 17 through 20:
161161

162-
1 2 2 2
163-
1 1 3 1
164-
1 2 3 3</pre>
162+
1 2 3 3
163+
1 1 1 2
164+
3 1 3 2</pre>
165165
</div>
166166

167167
<h3><a name="3">Demonstration 3</a></h3>

docs/function/boot1way.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ <h3><a name="7">Demonstration 7</a></h3>
529529
-----------------------------------------------------------------------------
530530
| Comparison | Test # | Ref # | Difference | t | p |
531531
|------------|------------|------------|------------|------------|----------|
532-
| 1 | 2 | 1 | -0.8075 | -1.78 | .087 |
532+
| 1 | 2 | 1 | -0.9797 | -2.64 | .035 |*
533533

534534
-----------------------------------------------------------------------------
535535
| GROUP # | GROUP label | N |
@@ -574,7 +574,7 @@ <h3><a name="8">Demonstration 8</a></h3>
574574
-----------------------------------------------------------------------------
575575
| Comparison | Test # | Ref # | Difference | t | p |
576576
|------------|------------|------------|------------|------------|----------|
577-
| 1 | 2 | 1 | -0.5106 | -0.80 | .241 |
577+
| 1 | 2 | 1 | -1.212 | -1.15 | .088 |
578578

579579
-----------------------------------------------------------------------------
580580
| GROUP # | GROUP label | N |

docs/function/bootbayes.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ <h3><a name="1">Demonstration 1</a></h3>
191191

192192
Posterior Statistics:
193193
original bias median stdev CI_lower CI_upper
194-
+184.5 +0.02607 +184.5 1.325 +181.9 +187.1</pre>
194+
+184.5 -0.02316 +184.5 1.349 +181.7 +187.1</pre>
195195
</div>
196196

197197
<h3><a name="2">Demonstration 2</a></h3>
@@ -228,8 +228,8 @@ <h3><a name="2">Demonstration 2</a></h3>
228228

229229
Posterior Statistics:
230230
original bias median stdev CI_lower CI_upper
231-
+175.5 -0.1068 +175.4 2.360 +170.5 +179.9
232-
+0.1904 +0.002915 +0.1944 0.07831 +0.04770 +0.3512</pre>
231+
+175.5 -0.1144 +175.4 2.342 +171.4 +180.4
232+
+0.1904 +0.002996 +0.1936 0.07780 +0.03952 +0.3372</pre>
233233
</div>
234234

235235
<p>Package: <a href="../index.html">statistics-resampling</a></p>

docs/function/bootci.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ <h3><a name="10">Demonstration 10</a></h3>
468468
<p>Produces the following output</p>
469469
<pre class="example">ci =
470470

471-
-0.7335 -0.65456
472-
0.2701 0.11194</pre>
471+
-0.011714 -0.22144
472+
0.6564 0.31204</pre>
473473
</div>
474474

475475
<h3><a name="11">Demonstration 11</a></h3>

docs/function/bootclust.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ <h3><a name="7">Demonstration 7</a></h3>
376376

377377
Bootstrap Statistics:
378378
original bias std_error CI_lower CI_upper
379-
-0.02393 -0.005070 +0.2148 -0.3921 +0.3147
380-
-0.2107 -0.01181 +0.2051 -0.5857 +0.08041</pre>
379+
+0.3007 +0.007771 +0.2331 -0.1203 +0.6520
380+
-0.01086 +0.01519 +0.2865 -0.4592 +0.4696</pre>
381381
</div>
382382

383383
<h3><a name="8">Demonstration 8</a></h3>
@@ -406,8 +406,8 @@ <h3><a name="8">Demonstration 8</a></h3>
406406

407407
Bootstrap Statistics:
408408
original bias std_error CI_lower CI_upper
409-
+0.2322 -0.04780 +0.2826 -0.2088 +0.7356
410-
+0.004256 +0.02352 +0.3034 -0.4945 +0.5023</pre>
409+
+0.1979 +0.001085 +0.1415 -0.05864 +0.4100
410+
+0.1593 +0.01669 +0.07158 +0.02569 +0.2652</pre>
411411
</div>
412412

413413
<h3><a name="9">Demonstration 9</a></h3>

docs/function/bootint.html

Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@
2020
<div id="doccontent">
2121

2222
<h2>bootint</h2>
23-
<pre> Computes simple percentile confidence interval(s) directly from a vector (or
24-
row-major matrix) of bootstrap statistics.
23+
<pre> Computes percentile confidence interval(s) directly from a vector (or row-
24+
major matrix) of bootstrap statistics.
2525

2626
-- Function File: CI = bootint (BOOTSTAT)
2727
-- Function File: CI = bootint (BOOTSTAT, PROB)
28+
-- Function File: CI = bootint (BOOTSTAT, PROB, ORIGINAL)
2829

29-
'CI = bootint (BOOTSTAT)' computes 95% percentile confidence intervals
30-
directly from the vector, or rows* of the matrix in BOOTSTAT, where
31-
BOOTSTAT contains bootstrap statistics such as those generated using
32-
the `bootstrp` function. Depending on the application, bootstrap
33-
confidence intervals with better coverage and accuracy can be computed
34-
using the various dedicated bootstrap functions from the statistics-
35-
resampling package.
30+
'CI = bootint (BOOTSTAT)' computes simple 95% percentile confidence
31+
intervals [1,2] directly from the vector, or rows* of the matrix in
32+
BOOTSTAT, where BOOTSTAT contains bootstrap statistics such as those
33+
generated using the `bootstrp` function. Depending on the application,
34+
bootstrap confidence intervals with better coverage and accuracy can
35+
be computed using the various dedicated bootstrap confidence interval
36+
functions from the statistics-resampling package.
3637

3738
* The matrix should have dimensions P * NBOOT, where P corresponds to
3839
the number of parameter estimates and NBOOT corresponds to the number
@@ -50,7 +51,22 @@ <h2>bootint</h2>
5051
The default value of PROB is the vector: [0.025, 0.975], for an
5152
equal-tailed 95% percentile confidence interval.
5253

53-
bootint (version 2024.04.24)
54+
'CI = bootint (BOOTSTAT, PROB, ORIGINAL)' uses the ORIGINAL estimates
55+
associated with BOOTSTAT to correct PROB and the resulting confidence
56+
intervals (CI) for median bias. The confidence intervals returned in CI
57+
therefore become bias-corrected percentile intervals [3,4].
58+
59+
BIBLIOGRAPHY:
60+
[1] Efron (1979) Bootstrap Methods: Another look at the jackknife.
61+
Annals Stat. 7,1-26
62+
[2] Efron, and Tibshirani (1993) An Introduction to the Bootstrap.
63+
New York, NY: Chapman & Hall
64+
[3] Efron (1981) Nonparametric Standard Errors and Confidence Intervals.
65+
Can J Stat. 9(2):139-172
66+
[4] Efron (1982) The jackknife, the bootstrap, and other resampling plans.
67+
SIAM-NSF, CBMS #38
68+
69+
bootint (version 2024.05.19)
5470
Author: Andrew Charles Penn
5571
https://www.researchgate.net/profile/Andrew_Penn/
5672

@@ -69,6 +85,35 @@ <h2>bootint</h2>
6985
along with this program. If not, see http://www.gnu.org/licenses/
7086
</pre>
7187

88+
<h3><a name="1">Demonstration 1</a></h3>
89+
<div class="demo">
90+
<p>The following code</p>
91+
<pre class="example">
92+
93+
% Law school data
94+
data = [576, 3.39; 635, 3.30; 558, 2.81; 578, 3.03; 666, 3.44; ...
95+
580, 3.07; 555, 3.00; 661, 3.43; 661, 3.36; 605, 3.13; ...
96+
653, 3.12; 575, 2.74; 545, 2.76; 572, 2.88; 594, 2.96];
97+
x = data(:, 1);
98+
y = data(:, 2);
99+
r = cor (x, y);
100+
101+
% 95% confidence interval for the mean
102+
bootstat = bootstrp (4999, @cor, x, y);
103+
CI_per = bootint (bootstat,0.95) % 95% simple percentile interval
104+
CI_cper = bootint (bootstat,0.95,r) % 95% bias-corrected percentile interval
105+
106+
% Please be patient, the calculations will be completed soon...</pre>
107+
<p>Produces the following output</p>
108+
<pre class="example">CI_per =
109+
110+
0.45985 0.96204
111+
112+
CI_cper =
113+
114+
0.41869 0.95609</pre>
115+
</div>
116+
72117
<p>Package: <a href="../index.html">statistics-resampling</a></p>
73118
</div>
74119
</body>

docs/function/bootknife.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ <h3><a name="8">Demonstration 8</a></h3>
442442

443443
Bootstrap Statistics:
444444
original bias std_error CI_lower CI_upper
445-
+0.09963 +0.02100 +0.2600 -0.4205 +0.4600
446-
+0.3130 -0.01524 +0.3128 -0.2219 +0.8042</pre>
445+
+0.1519 +0.03478 +0.2451 -0.2481 +0.5271
446+
+0.2824 +0.01686 +0.2437 -0.08981 +0.6853</pre>
447447
</div>
448448

449449
<h3><a name="9">Demonstration 9</a></h3>

docs/function/bootmode.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ <h3><a name="1">Demonstration 1</a></h3>
149149
<p>Produces the following output</p>
150150
<pre class="example">ans = Summary of results:
151151

152-
ans = H1 is 1 with p = 0.0005 so reject the null hypothesisthat there is 1 mode
152+
ans = H1 is 1 with p = 0 so reject the null hypothesisthat there is 1 mode
153153

154-
ans = H2 is 0 with p = 0.334 so accept the null hypothesis that there are 2 modes</pre>
154+
ans = H2 is 0 with p = 0.326 so accept the null hypothesis that there are 2 modes</pre>
155155
</div>
156156

157157
<p>Package: <a href="../index.html">statistics-resampling</a></p>

docs/function/bootwild.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h3><a name="1">Demonstration 1</a></h3>
180180

181181
Test Statistics:
182182
original std_err CI_lower CI_upper t-stat p-val FPR
183-
+184.5 +1.243 +181.6 +187.4 +148. <.001 .010</pre>
183+
+184.5 +1.243 +181.7 +187.3 +148. <.001 .010</pre>
184184
</div>
185185

186186
<h3><a name="2">Demonstration 2</a></h3>
@@ -218,8 +218,8 @@ <h3><a name="2">Demonstration 2</a></h3>
218218

219219
Test Statistics:
220220
original std_err CI_lower CI_upper t-stat p-val FPR
221-
+175.5 +2.502 +169.6 +181.4 +70.1 <.001 .010
222-
+0.1904 +0.08261 -0.002902 +0.3837 +2.31 .053 .298</pre>
221+
+175.5 +2.502 +169.8 +181.2 +70.1 <.001 .010
222+
+0.1904 +0.08261 +0.005631 +0.3752 +2.31 .046 .277</pre>
223223
</div>
224224

225225
<p>Package: <a href="../index.html">statistics-resampling</a></p>

docs/function/credint.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,30 @@ <h2>credint</h2>
7474
along with this program. If not, see http://www.gnu.org/licenses/
7575
</pre>
7676

77+
<h3><a name="1">Demonstration 1</a></h3>
78+
<div class="demo">
79+
<p>The following code</p>
80+
<pre class="example">
81+
82+
% Input univariate dataset
83+
heights = [183, 192, 182, 183, 177, 185, 188, 188, 182, 185].';
84+
85+
% 95% credible interval for the mean
86+
[stats, bootstat] = bootbayes (heights);
87+
CI = credint (bootstat,0.95) % 95% shortest probability interval
88+
CI = credint (bootstat,[0.025,0.975]) % 95% equal-tailed interval
89+
90+
% Please be patient, the calculations will be completed soon...</pre>
91+
<p>Produces the following output</p>
92+
<pre class="example">CI =
93+
94+
181.92 187.09
95+
96+
CI =
97+
98+
181.9 187.08</pre>
99+
</div>
100+
77101
<p>Package: <a href="../index.html">statistics-resampling</a></p>
78102
</div>
79103
</body>

0 commit comments

Comments
 (0)