-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.qmd
More file actions
192 lines (119 loc) · 6.23 KB
/
examples.qmd
File metadata and controls
192 lines (119 loc) · 6.23 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
---
title: "Examples"
---
NIMBLE provides a rich collection of examples to help you get started with statistical modeling and algorithm development. Examples cover a wide range of topics from basic BUGS model usage to advanced algorithm implementation.
::: {.callout-note collapse="true"}
## Building a model from BUGS code
[Read this example on a new page.](examples/nimble_build_a_model.html)
<iframe src="examples/nimble_build_a_model.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Converting to NIMBLE
[Read this example on a new page.](examples/converting_to_nimble.html)
<iframe src="examples/converting_to_nimble.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Creating a default MCMC
[Read this example on a new page.](examples/nimble_basic_mcmc.html)
<iframe src="examples/nimble_basic_mcmc.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Customizing an MCMC
[Read this example on a new page.](examples/nimble_customizing_mcmc.html)
<iframe src="examples/nimble_customizing_mcmc.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Parallelizing NIMBLE
[Read this example on a new page.](examples/parallelizing_NIMBLE.html)
<iframe src="examples/parallelizing_NIMBLE.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Simulating from a model (quickly!)
[Read this example on a new page.](examples/simulation_from_model.html)
<iframe src="examples/simulation_from_model.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Using linear predictors in a regression model
[Read this example on a new page.](examples/linpred.html)
<iframe src="examples/linpred.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Building a generalized linear mixed model and an MCMC for it
[Read this example on a new page.](examples/nimble_logistic_regression.html)
<iframe src="examples/nimble_logistic_regression.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Variable selection using reversible jump MCMC (RJMCMC)
[Read this example on a new page.](examples/RJMCMC_example.html)
<iframe src="examples/RJMCMC_example.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Restarting an MCMC
[Read this example on a new page.](examples/restart_mcmc.html)
<iframe src="examples/restart_mcmc.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Posterior predictive sampling and other post-MCMC use of samples
[Read this example on a new page.](examples/posterior_predictive.html)
<iframe src="examples/posterior_predictive.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Ecology examples from the book Applied Hierarchical Modeling in Ecology
[Read this example on a new page.](examples/Ecology_Examples.html)
<iframe src="examples/Ecology_Examples.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Writing a new distribution for use in BUGS code: zero-inflated Poisson
[Read this example on a new page.](examples/zero_inflated_poisson.html)
<iframe src="examples/zero_inflated_poisson.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Gaussian process models
[Read this example on a new page.](examples/gaussian_process.html)
<iframe src="examples/gaussian_process.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Conditional autoregressive (CAR) models
[Read this example on a new page.](examples/CAR.html)
<iframe src="examples/CAR.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Item response theory (IRT) models
[Read this example on a new page.](examples/IRT_example.html)
<iframe src="examples/IRT_example.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Maximum likelihood via Monte Carlo Expectation-Maximization (MCEM)
[Read this example on a new page.](examples/pumpMCEM.html)
<iframe src="examples/MLE.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Maximum likelihood (basic example)
[Read this example on a new page.](examples/MLE.html)
<iframe src="examples/MLE.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Stochastic volatility modeling using a custom distribution
[Read this example on a new page.](examples/stochastic_volatility.html)
<iframe src="examples/stochastic_volatility.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Bayesian nonparametric density estimation
[Read this example on a new page.](examples/bnp_density.html)
<iframe src="examples/bnp_density.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Bayesian nonparametric random effects
[Read this example on a new page.](examples/bnp_raneff.html)
<iframe src="examples/bnp_raneff.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Bayesian nonparametrics with jointly clustered observations
[Read this example on a new page.](examples/bnp_multivariate.html)
<iframe src="examples/bnp_multivariate.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::
::: {.callout-note collapse="true"}
## Using the Pólya-gamma sampler
[Read this example on a new page.](examples/polya_gamma.html)
<iframe src="examples/polya_gamma.html" width="100%" height="500" style="border: 1px solid #ccc;"></iframe>
:::