Skip to content

Commit

Permalink
update online manual (last commit didn't include this properly)
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Sep 2, 2024
1 parent 87088f7 commit 7af444b
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 65 deletions.
48 changes: 24 additions & 24 deletions docs/function/boot.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,27 +118,27 @@ <h3><a name="1">Demonstration 1</a></h3>

Columns 1 through 6:

3 1 3 1 1 1
3 1 3 2 1 1
3 2 2 2 1 3
2 3 3 2 2 2
3 1 3 1 2 3
2 1 3 3 2 1

Columns 7 through 12:

3 3 3 1 3 2
2 3 1 2 3 1
2 3 2 1 3 2
1 1 3 1 3 3
2 2 2 1 2 1
2 3 1 2 1 2

Columns 13 through 18:

2 2 2 3 1 1
2 2 1 1 3 3
3 2 1 3 3 1
2 1 2 2 3 3
2 2 3 3 1 1
3 1 1 1 2 3

Columns 19 and 20:

2 1
2 2
1 2</pre>
1 1
3 3
3 1</pre>
</div>

<h3><a name="2">Demonstration 2</a></h3>
Expand All @@ -153,27 +153,27 @@ <h3><a name="2">Demonstration 2</a></h3>

Columns 1 through 6:

2 3 1 2 1 2
3 1 2 2 1 2
3 3 1 3 1 2
2 3 2 2 3 1
2 1 1 2 3 2
3 3 1 2 3 1

Columns 7 through 12:

3 1 2 3 1 1
3 1 1 3 1 2
3 3 2 2 1 2
3 1 2 2 1 2
2 1 1 3 3 1
3 1 2 2 3 2

Columns 13 through 18:

3 3 2 2 1 2
2 3 2 3 1 1
3 1 1 3 1 2
2 3 1 2 1 2
3 3 1 2 1 1
3 1 1 3 3 1

Columns 19 and 20:

2 2
3 1
3 3</pre>
3 3
1 2
3 2</pre>
</div>

<h3><a name="3">Demonstration 3</a></h3>
Expand Down
4 changes: 2 additions & 2 deletions docs/function/boot1way.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h3><a name="7">Demonstration 7</a></h3>
-----------------------------------------------------------------------------
| Comparison | Test # | Ref # | Difference | t | p |
|------------|------------|------------|------------|------------|----------|
| 1 | 2 | 1 | +0.2109 | +0.68 | .384 |
| 1 | 2 | 1 | -0.01662 | -0.06 | .940 |

-----------------------------------------------------------------------------
| GROUP # | GROUP label | N |
Expand Down Expand Up @@ -574,7 +574,7 @@ <h3><a name="8">Demonstration 8</a></h3>
-----------------------------------------------------------------------------
| Comparison | Test # | Ref # | Difference | t | p |
|------------|------------|------------|------------|------------|----------|
| 1 | 2 | 1 | -1.742 | -1.40 | .149 |
| 1 | 2 | 1 | +0.05338 | +0.14 | .843 |

-----------------------------------------------------------------------------
| GROUP # | GROUP label | N |
Expand Down
6 changes: 3 additions & 3 deletions docs/function/bootbayes.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h3><a name="1">Demonstration 1</a></h3>

Posterior Statistics:
original bias median stdev CI_lower CI_upper
+184.5 +0.01157 +184.5 1.320 +181.8 +187.2</pre>
+184.5 -0.02286 +184.5 1.240 +182.1 +186.9</pre>
</div>

<h3><a name="2">Demonstration 2</a></h3>
Expand Down Expand Up @@ -228,8 +228,8 @@ <h3><a name="2">Demonstration 2</a></h3>

Posterior Statistics:
original bias median stdev CI_lower CI_upper
+175.5 +0.008112 +175.5 2.388 +170.9 +179.9
+0.1904 -0.0001651 +0.1904 0.07897 +0.03590 +0.3373</pre>
+175.5 -0.05767 +175.4 2.381 +171.3 +180.3
+0.1904 +0.001144 +0.1941 0.07872 +0.03729 +0.3456</pre>
</div>

<p>Package: <a href="../index.html">statistics-resampling</a></p>
Expand Down
4 changes: 2 additions & 2 deletions docs/function/bootci.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ <h3><a name="10">Demonstration 10</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

-0.35263 -0.73228
0.36155 0.12062</pre>
-0.73528 -0.60402
0.058896 0.39363</pre>
</div>

<h3><a name="11">Demonstration 11</a></h3>
Expand Down
8 changes: 4 additions & 4 deletions docs/function/bootclust.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ <h3><a name="7">Demonstration 7</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
+0.3268 -0.01548 +0.2891 -0.2138 +0.7483
-0.2208 -0.01057 +0.2370 -0.5732 +0.2073</pre>
-0.05462 -0.009144 +0.2292 -0.4038 +0.3533
+0.4724 +0.01875 +0.2151 +0.09272 +0.7899</pre>
</div>

<h3><a name="8">Demonstration 8</a></h3>
Expand Down Expand Up @@ -406,8 +406,8 @@ <h3><a name="8">Demonstration 8</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
+0.07605 +0.001881 +0.2810 -0.3770 +0.5512
+0.2486 -0.01034 +0.2385 -0.07577 +0.7367</pre>
+0.0009749 +0.03331 +0.1387 -0.2001 +0.2117
-0.1078 -0.04871 +0.3960 -0.9451 +0.3961</pre>
</div>

<h3><a name="9">Demonstration 9</a></h3>
Expand Down
4 changes: 2 additions & 2 deletions docs/function/bootknife.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ <h3><a name="8">Demonstration 8</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
-0.3449 -0.01633 0.2090 -0.6543 +0.03989
+0.2237 +0.02897 0.2800 -0.1574 +0.7630</pre>
+0.09989 -0.007025 0.2859 -0.3832 +0.5533
-0.3207 +0.003965 0.3694 -0.8856 +0.3101</pre>
</div>

<h3><a name="9">Demonstration 9</a></h3>
Expand Down
60 changes: 42 additions & 18 deletions docs/function/bootlm.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ <h2>bootlm</h2>
-- Function File: [STATS, BOOTSTAT] = bootlm (...)
-- Function File: [STATS, BOOTSTAT, AOVSTAT] = bootlm (...)
-- Function File: [STATS, BOOTSTAT, AOVSTAT, PRED_ERR] = bootlm (...)
-- Function File: [STATS, BOOTSTAT, AOVSTAT, PRED_ERR, X] = bootlm (...)

Fits a linear model with categorical and/or continuous predictors (i.e.
independent variables) on a continuous outcome (i.e. dependent variable)
Expand All @@ -57,7 +58,7 @@ <h2>bootlm</h2>
By default, confidence intervals and Null Hypothesis Significance Tests
(NHSTs) for the regression coefficients (H0 = 0) are calculated by wild
bootstrap-t and are robust when normality and homoscedasticity cannot be
assumed.
assumed [1].

Usage of this function is very similar to that of 'anovan'. Data (Y)
is a numeric variable, and the predictor(s) are specified in GROUP (a.k.a.
Expand Down Expand Up @@ -136,11 +137,11 @@ <h2>bootlm</h2>

o 'wild' (default): Wild bootstrap-t, using the 'bootwild'
function. Please see the help documentation below and in the
function 'bootwild' for more information about this method.
function 'bootwild' for more information about this method [1].

o 'bayesian': Bayesian bootstrap, using the 'bootbayes' function.
Please see the help documentation below and in the function
'bootbayes' for more information about this method.
'bootbayes' for more information about this method [2].

Note that p-values are a frequentist concept and are only computed
and returned from bootlm when the METHOD is 'wild'. Since the wild
Expand All @@ -165,7 +166,7 @@ <h2>bootlm</h2>

o 'auto': Sets a value for PRIOR that effectively incorporates
Bessel's correction a priori such that the variance of the
posterior (i.e. the rows of BOOTSTAT) becomes an unbiased
posterior (i.e. of the rows of BOOTSTAT) becomes an unbiased
estimator of the sampling variance*. The calculation used for
'auto' is as follows:

Expand All @@ -187,7 +188,7 @@ <h2>bootlm</h2>
to Bayes rule: a uniform (or flat) Dirichlet distribution
(over all points in its support). Please see the help
documentation for the function 'bootbayes' for more information
about the prior.
about the prior [2].

'[...] = bootlm (Y, GROUP, ..., 'alpha', ALPHA)'

Expand All @@ -198,16 +199,16 @@ <h2>bootlm</h2>
o scalar: Set the central mass of the intervals to 100*(1-ALPHA)%.
For example, 0.05 for a 95% interval. If METHOD is 'wild',
then the intervals are symmetric bootstrap-t confidence
intervals. If METHOD is 'bayesian', then the intervals are
shortest probability credible intervals.
intervals [1]. If METHOD is 'bayesian', then the intervals
are shortest probability credible intervals [2].

o vector: A pair of probabilities defining the lower and upper
and upper bounds of the interval(s) as 100*(ALPHA(1))% and
100*(ALPHA(2))% respectively. For example, [.025, .975] for
a 95% interval. If METHOD is 'wild', then the intervals are
asymmetric bootstrap-t confidence intervals. If METHOD is
asymmetric bootstrap-t confidence intervals [1]. If METHOD is
'bayesian', then the intervals are simple percentile credible
intervals.
intervals [2].

The default value of ALPHA is the scalar: 0.05.

Expand Down Expand Up @@ -412,7 +413,7 @@ <h2>bootlm</h2>
- 'CI_lower': The lower bound(s) of the confidence/credible interval(s)
- 'CI_upper': The upper bound(s) of the confidence/credible interval(s)
- 'pval': The p-value(s) for the hypothesis that the estimate(s) == 0
- 'fpr': The minimum false positive risk (FPR) for each p-value
- 'fpr': The minimum false positive risk (FPR) for each p-value [3].
- 'N': The number of independent sampling units used to compute CIs
- 'prior': The prior used for Bayesian bootstrap. This will return a
scalar for regression coefficients, or a P x 1 or P x 2
Expand Down Expand Up @@ -445,7 +446,7 @@ <h2>bootlm</h2>
- 'MS': Mean-squares
- 'F': F-Statistic
- 'PVAL': p-values
- 'FPR': The minimum false positive risk for each p-value
- 'FPR': The minimum false positive risk for each p-value [3]
- 'SSE': Sum-of-Squared Error
- 'DFE': Degrees of Freedom for Error
- 'MSE': Mean Squared Error
Expand All @@ -459,8 +460,8 @@ <h2>bootlm</h2>
the method used is 'wild' bootstrap AND when no other statistics are
requested (i.e. estimated marginal means or posthoc tests). The
bootstrap is achieved by wild bootstrap of the residuals from the full
model. Computations of the statistics in AOVSTAT are compatible with
the 'clustid' and 'blocksz' options.
model [1,4]. Computations of the statistics in AOVSTAT are compatible
with the 'clustid' and 'blocksz' options.

The bootlm function treats all model predictors as fixed effects during
ANOVA tests. While any type of predictor, be it a fixed effect or
Expand All @@ -478,13 +479,13 @@ <h2>bootlm</h2>
sample sizes are equal or not.

'[STATS, BOOTSTAT, AOVSTAT, PRED_ERR] = bootlm (...)' also computes
refined bootstrap estimates of prediction error* and returns the derived
statistics in a structure with the following fields:
refined bootstrap estimates of prediction error* and returns statistics
derived from it in a structure containing the following fields:
- 'MODEL': The formula of the linear model(s) in Wilkinson's notation
- 'PE': Bootstrap estimate of prediction error
- 'PE': Bootstrap estimate of prediction error [5]
- 'PRESS': Bootstrap estimate of predicted residual error sum of squares
- 'RSQ_pred': Bootstrap estimate of predicted R-squared
- 'EIC': Extended (Efron) Information Criterion
- 'EIC': Extended (Efron) Information Criterion [6]
- 'RL': Relative likelihood (compared to the intercept-only model)
- 'Wt': EIC expressed as weights

Expand All @@ -501,7 +502,30 @@ <h2>bootlm</h2>
installed and loaded, then these computations will be automatically
accelerated by parallel processing on platforms with multiple processors

bootlm (version 2024.05.17)
'[STATS, BOOTSTAT, AOVSTAT, PRED_ERR, MAT] = bootlm (...)' also returns
a structure containing the design matrix of the predictors (X), the
regression coefficients (b), the hypothesis matrix (L) and the outcome (Y)
for the linear model.

Bibliography:
[1] Penn, A.C. statistics-resampling manual: `bootwild` function reference.
https://gnu-octave.github.io/statistics-resampling/function/bootwild.html
and references therein. Last accessed 02 Sept 2024.
[2] Penn, A.C. statistics-resampling manual: `bootbayes` function reference.
https://gnu-octave.github.io/statistics-resampling/function/bootbayes.html
and references therein. Last accessed 02 Sept 2024.
[3] David Colquhoun (2019) The False Positive Risk: A Proposal Concerning
What to Do About p-Values, The American Statistician, 73:sup1, 192-201
[4] ter Braak (1992) Permutation versus bootstrap significance test in
multiple regression and ANOVA. In Jockel et al (Eds.) Bootstrapping
and Related Techniques. Springer-Verlag, Berlin, pg 79-86
[5] Efron and Tibshirani (1993) An Introduction to the Bootstrap.
New York, NY: Chapman & Hall. pg 247-252
[6] Konishi & Kitagawa (2008), "Bootstrap Information Criterion" In:
Information Criteria and Statistical Modeling. Springer Series in
Statistics. Springer, NY.

bootlm (version 2024.07.08)
Author: Andrew Charles Penn
https://www.researchgate.net/profile/Andrew_Penn/

Expand Down
4 changes: 2 additions & 2 deletions docs/function/bootmode.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ <h3><a name="1">Demonstration 1</a></h3>
<p>Produces the following output</p>
<pre class="example">ans = Summary of results:

ans = H1 is 1 with p = 0.001 so reject the null hypothesisthat there is 1 mode
ans = H1 is 1 with p = 0.0005 so reject the null hypothesisthat there is 1 mode

ans = H2 is 0 with p = 0.343 so accept the null hypothesis that there are 2 modes</pre>
ans = H2 is 0 with p = 0.306 so accept the null hypothesis that there are 2 modes</pre>
</div>

<p>Package: <a href="../index.html">statistics-resampling</a></p>
Expand Down
6 changes: 3 additions & 3 deletions docs/function/bootwild.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h3><a name="1">Demonstration 1</a></h3>

Test Statistics:
original std_err CI_lower CI_upper t-stat p-val FPR
+184.5 1.310 +181.5 +187.5 +141. <.001 .010</pre>
+184.5 1.310 +181.6 +187.4 +141. <.001 .010</pre>
</div>

<h3><a name="2">Demonstration 2</a></h3>
Expand Down Expand Up @@ -218,8 +218,8 @@ <h3><a name="2">Demonstration 2</a></h3>

Test Statistics:
original std_err CI_lower CI_upper t-stat p-val FPR
+175.5 2.563 +169.7 +181.3 +68.5 <.001 .010
+0.1904 0.08460 -0.0005865 +0.3814 +2.25 .051 .291</pre>
+175.5 2.563 +169.8 +181.2 +68.5 <.001 .010
+0.1904 0.08460 +0.003534 +0.3773 +2.25 .047 .280</pre>
</div>

<p>Package: <a href="../index.html">statistics-resampling</a></p>
Expand Down
Binary file modified docs/function/images/boot1way_701.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/function/images/boot1way_801.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/function/randtest.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ <h3><a name="2">Demonstration 2</a></h3>
<p>Produces the following output</p>
<pre class="example">pval =

0.53419
0.00028607
0.53148
0.00049014

stat =

Expand Down
6 changes: 3 additions & 3 deletions docs/function/randtest2.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ <h3><a name="1">Demonstration 1</a></h3>
@(A, B) log (var (A) ./ var (B)))
</pre>
<p>Produces the following output</p>
<pre class="example">pval = 0.3484
pval = 0.2774
pval = 0.31921</pre>
<pre class="example">pval = 0.3668
pval = 0.2698
pval = 0.30905</pre>
</div>

<h3><a name="2">Demonstration 2</a></h3>
Expand Down

0 comments on commit 7af444b

Please sign in to comment.