Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Feb 11, 2025
1 parent a738bb2 commit ef7eaff
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion R/diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' sdate_lwr = "date_of_sample_tested"
#' ) |>
#' as_epidist_aggregate_data() |>
#' as_epidist_naive_model() |>
#' as_epidist_marginal_model() |>
#' epidist(chains = 2, cores = 2, refresh = ifelse(interactive(), 250, 0))
#' epidist_diagnostics(fit)
epidist_diagnostics <- function(fit) {
Expand Down
2 changes: 1 addition & 1 deletion R/epidist.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#' sdate_lwr = "date_of_sample_tested"
#' ) |>
#' as_epidist_aggregate_data() |>
#' as_epidist_naive_model() |>
#' as_epidist_marginal_model() |>
#' epidist(chains = 2, cores = 2, refresh = ifelse(interactive(), 250, 0))
#'
#' summary(fit)
Expand Down
3 changes: 1 addition & 2 deletions R/marginal_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ epidist_formula_model.epidist_marginal_model <- function(
#'
#' This method transforms data into the format required by the marginal model
#' by:
#' 1. Identifying required columns for the marginal model using
#' [.marginal_required_cols()]
#' 1. Identifying required columns for the marginal model
#' 2. Summarising the data by counting unique combinations of these columns and
#' any variables in the model formula using [.summarise_n_by_formula()]
#' 3. Converting the summarised data to a marginal model object using
Expand Down
3 changes: 1 addition & 2 deletions R/naive_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ epidist_formula_model.epidist_naive_model <- function(
#'
#' This method transforms data into the format required by the naive model
#' by:
#' 1. Identifying required columns for the naive model using
#' [.naive_required_cols()]
#' 1. Identifying required columns for the naive model
#' 2. Summarising the data by counting unique combinations of these columns and
#' any variables in the model formula using [.summarise_n_by_formula()]
#' 3. Converting the summarised data to a naive model object using
Expand Down
12 changes: 12 additions & 0 deletions man/epidist.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/epidist_diagnostics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/epidist_transform_data_model.epidist_marginal_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/epidist_transform_data_model.epidist_naive_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

0 comments on commit ef7eaff

Please sign in to comment.