Skip to content

Commit

Permalink
Merge branch 'gnu-octave:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
acpennlab authored Jan 9, 2024
2 parents 90a698e + ff0cf13 commit cd6d441
Show file tree
Hide file tree
Showing 11 changed files with 113 additions and 109 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,31 @@ To install (or test) the statistics-resampling package at a location of your cho

### Usage

All help and demos are documented on the ['Function Reference'](https://gnu-octave.github.io/statistics-resampling/function_reference) page in the [manual](https://gnu-octave.github.io/statistics-resampling/). If you do not see the navigation pane on the manual web pages, please enable javascript in your browser.

All help and demos are documented on the ['Function Reference'](https://gnu-octave.github.io/statistics-resampling/function_reference) page in the [manual](https://gnu-octave.github.io/statistics-resampling/). If you do not see the navigation pane on the manual web pages, please enable javascript in your browser. If you need help with using any of the functions in this package, please post your questions on the [discussions page](https://github.com/gnu-octave/statistics-resampling/discussions).
Function help can also be requested directly from the Octave/MATLAB command prompt, by typing `help function-name` - substituting in the actual function name.

In Octave only, you can get a basic overview of the package and it's functions by typing: `pkg describe -verbose statistics-resampling`, or request demonstrations of function usage by typing `demo function-name`. Users can also request help with using functions and programming in Octave at the [discourse group](https://octave.discourse.group/c/help/6).

### Quick start

Below are some links to demonstrations of how the bootstrap or randomization functions from this package can be used to perform robust versions of commonly used statistical tests:
Below are some links to demonstrations of how the bootstrap or randomization functions from this package can be used to perform variants of the commonly used statistical tests below, but without the Normality assumption:

* [t-test to compare two independent samples (assuming equal variances)](https://gnu-octave.github.io/statistics-resampling/function/boot1way.html#1)

* [t-test to compare two independent samples (assuming equal variances but robust to outliers)](https://gnu-octave.github.io/statistics-resampling/function/boot1way.html#2)

* [t-test to compare two independent samples (not assuming equal variances)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#1)

* [t-test to compare two paired or matching samples (robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#2)
* [t-test to compare two paired or matching samples (also robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#2)

* [One-way ANOVA to compare more than two independent samples (robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#3)
* [One-way ANOVA to compare more than two independent samples (also robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#3)

* [Nested one-way ANOVA to compare more than two independent samples (robust to heteroscedasticity and grouping of observations)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#11)
* [Nested one-way ANOVA to compare more than two independent samples (also robust to heteroscedasticity and grouping of observations)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#11)

* [Two-way factorial ANOVA (robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#6)
* [Two-way factorial ANOVA (also robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#6)

* [One-way ANCOVA (robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#7)
* [One-way ANCOVA (also robust to heteroscedasticity)](https://gnu-octave.github.io/statistics-resampling/function/bootlm.html#7)

### Issues

Expand Down
24 changes: 12 additions & 12 deletions docs/function/boot.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ <h3><a name="1">Demonstration 1</a></h3>

Columns 1 through 12:

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

Columns 13 through 20:

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

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

Columns 1 through 12:

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

Columns 13 through 20:

2 3 2 2 1 2 2 3
3 1 1 3 1 2 2 2
3 3 1 2 1 2 2 2</pre>
3 3 1 3 1 2 2 1
3 3 2 3 1 2 2 1
2 1 2 2 3 2 3 1</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 @@ -528,7 +528,7 @@ <h3><a name="7">Demonstration 7</a></h3>
-----------------------------------------------------------------------------
| Comparison | Test # | Ref # | Difference | t | p |
|------------|------------|------------|------------|------------|----------|
| 1 | 2 | 1 | -0.2285 | -0.44 | .637 |
| 1 | 2 | 1 | +0.5927 | +1.34 | .192 |

-----------------------------------------------------------------------------
| GROUP # | GROUP label | N |
Expand Down Expand Up @@ -573,7 +573,7 @@ <h3><a name="8">Demonstration 8</a></h3>
-----------------------------------------------------------------------------
| Comparison | Test # | Ref # | Difference | t | p |
|------------|------------|------------|------------|------------|----------|
| 1 | 2 | 1 | -0.8303 | -1.01 | .192 |
| 1 | 2 | 1 | +0.06620 | +0.14 | .820 |

-----------------------------------------------------------------------------
| GROUP # | GROUP label | N |
Expand Down
46 changes: 23 additions & 23 deletions docs/function/bootci.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ <h3><a name="1">Demonstration 1</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

23.616
34.358</pre>
23.825
34.411</pre>
</div>

<h3><a name="2">Demonstration 2</a></h3>
Expand All @@ -204,8 +204,8 @@ <h3><a name="2">Demonstration 2</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

23.975
34.269</pre>
23.462
34.651</pre>
</div>

<h3><a name="3">Demonstration 3</a></h3>
Expand All @@ -225,8 +225,8 @@ <h3><a name="3">Demonstration 3</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

25.04
36.477</pre>
24.811
36.698</pre>
</div>

<h3><a name="4">Demonstration 4</a></h3>
Expand All @@ -243,8 +243,8 @@ <h3><a name="4">Demonstration 4</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

96.629
235.91</pre>
100.29
233.9</pre>
</div>

<h3><a name="5">Demonstration 5</a></h3>
Expand All @@ -261,8 +261,8 @@ <h3><a name="5">Demonstration 5</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

117.01
260.73</pre>
116.4
265.89</pre>
</div>

<h3><a name="6">Demonstration 6</a></h3>
Expand All @@ -282,8 +282,8 @@ <h3><a name="6">Demonstration 6</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

108.55
297.71</pre>
106.75
290.95</pre>
</div>

<h3><a name="7">Demonstration 7</a></h3>
Expand All @@ -303,8 +303,8 @@ <h3><a name="7">Demonstration 7</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

111.53
268.13</pre>
115.81
278.35</pre>
</div>

<h3><a name="8">Demonstration 8</a></h3>
Expand All @@ -325,8 +325,8 @@ <h3><a name="8">Demonstration 8</a></h3>
<p>Produces the following output</p>
<pre class="example">ci =

0.50501
0.86333</pre>
0.51674
0.873</pre>
</div>

<h3><a name="9">Demonstration 9</a></h3>
Expand Down Expand Up @@ -431,13 +431,13 @@ <h3><a name="9">Demonstration 9</a></h3>
<p>Produces the following output</p>
<pre class="example">ans =

-16.69 -20.555 -12.325
-11.721 -15.104 -7.907
-8.0606 -11.244 -4.3564
0.10476 -0.081023 0.28225
0.010336 -0.0032993 0.022647
0.06452 0.033083 0.095608
0.0016638 0.00017173 0.0031554</pre>
-16.69 -20.526 -12.642
-11.721 -15.188 -8.0851
-8.0606 -11.299 -4.6596
0.10476 -0.062295 0.28823
0.010336 -0.00273 0.023016
0.06452 0.033493 0.094721
0.0016638 0.00019837 0.0031828</pre>
</div>

<h3><a name="10">Demonstration 10</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 @@ -344,8 +344,8 @@ <h3><a name="7">Demonstration 7</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
-0.07649 +0.007409 +0.1929 -0.4547 +0.1901
-0.1326 +0.0007516 +0.2012 -0.4808 +0.1810</pre>
-0.09767 -0.02694 +0.2484 -0.4705 +0.3481
-0.1495 -0.02999 +0.2569 -0.5599 +0.2306</pre>
</div>

<h3><a name="8">Demonstration 8</a></h3>
Expand All @@ -372,8 +372,8 @@ <h3><a name="8">Demonstration 8</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
-0.2704 +0.02873 +0.1514 -0.4948 -0.009047
+0.3871 -0.09639 +0.3719 -0.5867 +0.7257</pre>
-0.07584 -0.03771 +0.2730 -0.5805 +0.2926
-0.05457 -0.05267 +0.3563 -0.6070 +0.5813</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 @@ -433,8 +433,8 @@ <h3><a name="8">Demonstration 8</a></h3>

Bootstrap Statistics:
original bias std_error CI_lower CI_upper
-0.1255 -0.001803 +0.2679 -0.5396 +0.3417
+0.03417 +0.02389 +0.2090 -0.2814 +0.3884</pre>
+0.4165 -0.01155 +0.2633 +0.007875 +0.8868
-0.3700 +0.01114 +0.2749 -0.8682 +0.04576</pre>
</div>

<h3><a name="9">Demonstration 9</a></h3>
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.0005 so reject the null hypothesisthat there is 1 mode
ans = H1 is 1 with p = 0.001 so reject the null hypothesisthat there is 1 mode

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

<p>Package: <a href="../index.html">statistics-resampling</a></p>
Expand Down
94 changes: 47 additions & 47 deletions docs/function/bootstrp.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,58 +105,58 @@ <h3><a name="1">Demonstration 1</a></h3>
<p>Produces the following output</p>
<pre class="example">bootstat =

30.385
26.577
32.962
26.885
31.077
26.615
29.731
29.231
27.885
28.962
27.385
29.231
28.654
35.615
27.654
26.462
30.885
31.731
29.615
28.308
29.538
28.615
36.269
29.923
30.115
32.538
28.962
31.385
25.231
30.154
26.115
25.231
25.962
33.654
33.269
31.154
34.385
30.962
30.808
29.192
36.192
35.346
30.923
31.423
29.038
25.769
30.192
30.231
25.692
28.577
27.038
26.269
31.423
30.154
29.654
28.577
32.154
28.385
32.615
24.846
32.269
25.577
29.615
26.923
27.038
26.731
33.923
31.962
26.538
26.846
29.769
27
26.731
29.231
30.885
31.077
30
29.115
31.769
32.423
30.692
29.231
31.077
28.192
28.808
31.269
27.692
28.231
32.346
31.385
28.5
31.038
28.192
33.308
30.231
28.038

ans = 2.7164</pre>
ans = 2.3366</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.
Loading

0 comments on commit cd6d441

Please sign in to comment.