Repository navigation
Expand file tree
/
Copy pathbootstrap.qmd
More file actions
142 lines (80 loc) · 3.95 KB
/
Copy pathbootstrap.qmd
File metadata and controls
142 lines (80 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
title: "The Bootstrap"
format:
html: default
revealjs:
output-file: bootstrap-slides.html
shift-heading-level-by: 1
pdf:
output-file: bootstrap-handout.pdf
docx:
output-file: bootstrap-handout.docx
---
{{< include sds/_subfiles/shared-config.qmd >}}
{{< include sds/_subfiles/basic-statistical-methods/_prose-intro-bootstrap.qmd >}}
# The HERS data
{{< include sds/_subfiles/basic-statistical-methods/_load-hers-short.qmd >}}
# Bootstrap confidence intervals {#sec-bootstrap-ci}
## When to use the bootstrap {#sec-bootstrap-when}
{{< include sds/_subfiles/basic-statistical-methods/_prose-bootstrap-when.qmd >}}
{{< slidebreak >}}
## The bootstrap procedure {#sec-bootstrap-procedure}
<!-- No slidebreak here: the heading shares its slide with the def-bootstrap-sample div. -->
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-sample.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bootstrap-sample-toy.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-distribution.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-se.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bootstrap-distribution-toy.qmd >}}
::: {.reading}
- @hoggtanis2015 [Sec. 7.7, pp. 353--360] covers resampling methods.
- @CaseBerg01 [Sec. 10.1.4, pp. 478--480] covers bootstrap standard errors.
- @rice2007mathematical [Sec. 10.4.6, pp. 399--400] covers variability of location estimates by the bootstrap.
- @rice2007mathematical [Sec. 14.6, pp. 585--586] covers conditional inference, unconditional inference and the bootstrap.
:::
{{< slidebreak >}}
## Bootstrap confidence interval methods {#sec-bootstrap-methods}
{{< include sds/_subfiles/basic-statistical-methods/_prose-bootstrap-methods.qmd >}}
{{< slidebreak >}}
### Normal approximation {#sec-bootstrap-normal}
<!-- No slidebreak here: the heading shares its slide with the def-bootstrap-ci-normal div. -->
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-ci-normal.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bootstrap-normal-toy.qmd >}}
{{< slidebreak >}}
### Percentile method {#sec-bootstrap-percentile}
<!-- No slidebreak here: the heading shares its slide with the def-bootstrap-ci-percentile div. -->
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-ci-percentile.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bootstrap-percentile-toy.qmd >}}
{{< slidebreak >}}
### Bias-corrected and accelerated method {#sec-bootstrap-bca}
<!-- No slidebreak here: the heading shares its slide with the def-bca-bias-correction div. -->
{{< include sds/_subfiles/basic-statistical-methods/_def-bca-bias-correction.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bca-bias-correction.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_def-bca-acceleration.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bca-acceleration.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_def-bootstrap-ci-bca.qmd >}}
{{< slidebreak >}}
{{< include sds/_subfiles/basic-statistical-methods/_exm-bootstrap-bca-toy.qmd >}}
{{< slidebreak >}}
## The boot package {#sec-bootstrap-R}
{{< include sds/_subfiles/basic-statistical-methods/_prose-bootstrap-R.qmd >}}
{{< slidebreak >}}
## Example: slope of SBP on age in HERS {#sec-bootstrap-hers}
<!-- No slidebreak here: the heading shares its slide with the exm-hers-bootstrap div. -->
{{< include sds/_subfiles/basic-statistical-methods/_exm-hers-bootstrap.qmd >}}
# Further reading {#sec-bootstrap-reading}
- Chapter 24 of Lange's textbook [@lange2010numerical]
covers permutation tests and the bootstrap,
with an emphasis on computation.
# References {.unnumbered}
::: {#refs}
:::