Skip to content

Commit

Permalink
Start with model fitting section
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed May 24, 2024
1 parent 710c89f commit d6e4b09
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions vignettes/ebola.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ obs_combined <- dplyr::bind_rows(
dplyr::group_by(scenario, obs_type) |>
dplyr::mutate(
sample_size = dplyr::n()
)
) |>
as.data.table()
nrow(obs_combined)
```
Expand All @@ -190,9 +191,28 @@ obs_combined |>

# Model fitting

* Fit the lognormal model
* Fit the gamma model
* Other things here? Convergence checking?
Fit the lognormal model(s).

```{r}
obs_combined_list <- split(obs_combined, by = c("scenario", "obs_type"))
fit_lognormal_models <- map(
obs_combined_list,
.f = function(x) latent_truncation_censoring_adjusted_delay(data = x)
)
```

Fit the gamma model(s).

```{r eval=FALSE}
fit_lognormal_models <- map(
obs_combined_list,
.f = function(x) latent_truncation_censoring_adjusted_delay(data = x, delay_prior = "gamma")

Check warning on line 210 in vignettes/ebola.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=vignettes/ebola.Rmd,line=210,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 94 characters.
)
```

Other things here?
Convergence checking?

# Post-processing

Expand Down

0 comments on commit d6e4b09

Please sign in to comment.