Skip to content

Commit e67c164

Browse files
committed
Deploying to gh-pages from @ 109d66a 🚀
1 parent 1e3d15d commit e67c164

35 files changed

Lines changed: 180 additions & 129 deletions

CODE_OF_CONDUCT.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CONTRIBUTING.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/Using-EpiStrainDynamics.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/Using-EpiStrainDynamics.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ selectively removed.
172172
A full worked example using a subtyped structure:
173173

174174
``` r
175+
175176
mod <- construct_model(
176177

177178
method = p_spline(),
@@ -216,6 +217,7 @@ be applied at this stage by simply calling
216217
onto the constructed model object.
217218

218219
``` r
220+
219221
fit <- fit_model(
220222
mod,
221223
n_iter = 2000,
@@ -233,6 +235,7 @@ previous step, accessed with `$constructed_model`.
233235
A summary of model convergence diagnostics can be viewed using:
234236

235237
``` r
238+
236239
diagnose_model(fit)
237240
#> Model Convergence Diagnostics
238241
#> =============================
@@ -246,6 +249,7 @@ package that works with stan outputs. For example, one could visualise
246249
posteriors with the package `bayesplot`:
247250

248251
``` r
252+
249253
bayesplot::mcmc_areas(as.matrix(fit$fit), pars = 'tau[1]', prob = 0.8)
250254
```
251255

@@ -257,6 +261,7 @@ plot of chunk unnamed-chunk-5
257261
The `bayesplot` package can also be used to evaluate convergence:
258262

259263
``` r
264+
260265
bayesplot::mcmc_trace(rstan::extract(fit$fit, permuted = FALSE), pars = c('a[1,1]'))
261266
```
262267

@@ -298,6 +303,7 @@ Calculate epidemic growth rate with
298303
[`growth_rate()`](https://acefa-hubs.github.io/EpiStrainDynamics/reference/growth_rate.md):
299304

300305
``` r
306+
301307
gr <- growth_rate(fit)
302308
head(gr$measure)
303309
#> # A tsibble: 6 x 9 [7D]
@@ -323,6 +329,7 @@ Calculate effective reproduction number over time with
323329
(requiring specification of a generation interval distribution):
324330

325331
``` r
332+
326333
rt <- Rt(fit, gi_dist = function(x) 4*x*exp(-2*x))
327334
plot(rt)
328335
```
@@ -335,6 +342,7 @@ Calculate incidence with or without a day of week effect with
335342
[`incidence()`](https://acefa-hubs.github.io/EpiStrainDynamics/reference/incidence.md):
336343

337344
``` r
345+
338346
inc_dow <- incidence(fit, dow = TRUE)
339347
plot(inc_dow)
340348
#> Error in plot.incidence(inc_dow): object 'inc' not found
@@ -356,6 +364,7 @@ named lists provided to
356364
)
357365

358366
``` r
367+
359368
prop <- proportion(fit)
360369
#> Error in splineDesign(Aknots, x, ord): length of 'derivs' is larger than length of 'x'
361370
plot(prop)

articles/algorithmic-scaling.html

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)