Skip to content

Commit

Permalink
Issue #332: Fix to R CMD CHECK on Windows by reverting family as st…
Browse files Browse the repository at this point in the history
…ring in Ebola vignette (#334)

* Comment out Ebola vignette as test

* Try reversion of the string family
  • Loading branch information
athowes authored Sep 17, 2024
1 parent 7a930de commit a8651e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vignettes/ebola.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ Now we are ready to fit the latent individual model.
We start by fitting a single lognormal distribution to the data.
This model assumes that a single distribution describes all delays in the data, regardless of the case's location, sex, or any other covariates.
To do this, we set `formula = bf(mu ~ 1, sigma ~ 1)` to place an model with only and intercept parameter (i.e. `~ 1` in R formula syntax) on the `mu` and `sigma` parameters of the lognormal distribution.
This distribution is specified using `family = "lognormal"`.
This distribution is specified using `family = lognormal()`.

```{r}
fit <- epidist(
data = obs_prep,
formula = bf(mu ~ 1, sigma ~ 1),
family = "lognormal",
family = lognormal(),
algorithm = "sampling",
refresh = 0,
silent = 2,
Expand All @@ -246,7 +246,7 @@ To fit a model which varies the parameters of the fitted lognormal distribution,
fit_sex <- epidist(
data = obs_prep,
formula = bf(mu ~ 1 + sex, sigma ~ 1 + sex),
family = "lognormal",
family = lognormal(),
algorithm = "sampling",
refresh = 0,
silent = 2,
Expand Down Expand Up @@ -275,7 +275,7 @@ fit_sex_district <- epidist(
mu ~ 1 + sex + (1 | district),
sigma ~ 1 + sex + (1 | district)
),
family = "lognormal",
family = lognormal(),
algorithm = "sampling",
refresh = 0,
silent = 2,
Expand Down

0 comments on commit a8651e3

Please sign in to comment.