Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Related projects section in README #107

Merged
merged 6 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/probability_contain.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#'
#' @details
#' When using `simulate = TRUE`, the default arguments to simulate the
#' transmission chains with [chain_sim()] are `1e5` replicates,
#' transmission chains with [.chain_sim()] are `1e5` replicates,
#' a negative binomial (`nbinom`) offspring distribution, parameterised with
#' `R` (and `pop_control` if > 0) and `k`.
#'
Expand All @@ -40,7 +40,7 @@
#' enables setting the `case_threshold`, `outbreak_time` and `generation_time`
#' arguments.
#' @param ... <[`dynamic-dots`][rlang::dyn-dots]> Named elements to replace
#' default arguments in [chain_sim()]. See details.
#' default arguments in [.chain_sim()]. See details.
#' @param case_threshold A number for the threshold of the number of cases below
#' which the epidemic is considered contained. `case_threshold` is only used
#' when `simulate = TRUE`.
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ solve_for_u <- function(prop, R, k) {
if (!is.function(generation_time)) {
stop(sprintf("%s %s",
"The `generation_time` argument must be a function",
"(see details in ?chain_sim)."
"(see details in ?.chain_sim)."
)
)
}
Expand Down
12 changes: 5 additions & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,10 @@ citation("superspreading")

This project has some overlap with other R packages:

- [`{bpmodels}`](https://github.com/epiverse-trace/bpmodels) is another Epiverse-TRACE
R package that analyses transmission chain data to infer the transmission process for either
the size or length of transmission chains. Two main differences between the packages
are: 1) `{superspreading}` has more functions to compute metrics that characterise
outbreaks and superspreading events (e.g. `probability_epidemic()` &
`probability_extinct()`); 2) `{bpmodels}` can simulate a branching process
(`chain_sim()`) with a specified process (e.g. negative binomial).
- [`{epichains}`](https://github.com/epiverse-trace/epichains) is another Epiverse-TRACE R package that analyses transmission chain data to infer the likelihood for either the size or length of an outbreak cluster, or simulate transmission chains. It is based on the, now retired, [`{bpmodels}`](https://github.com/epiforecasts/bpmodels) package.

Two main differences between `{superspreading}` and `{epichains}` are: 1) `{superspreading}` has functions to compute metrics that characterise outbreaks and superspreading events (e.g. `probability_epidemic()`, `probability_extinct()`, `proportion_cluster_size()` & `proportion_transmission()`); whereas `{epichains}` has functions to calculate the likelihood of a transmission chain size and length. 2) `{epichains}` exports functions to simulate a single-type branching process (`simulate_chains()` & `simulate_chain_stats()`).

- [`{modelSSE}`](https://CRAN.R-project.org/package=modelSSE) has a similar scope to `{superspreading}`, it contains functions to infer offspring distribution parameters. It exports several infectious disease outbreak datasets (see `data(package = "modelSSE")`). Both `{superspreading}` and `{modelSSE}` export functions to calculate the proportion of transmission using different methods. It also imports the [`{Delaporte}`](https://CRAN.R-project.org/package=Delaporte) package to model the offspring distribution as a Delaporte distribution.

## References
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,32 @@ citation("superspreading")

This project has some overlap with other R packages:

- [`{bpmodels}`](https://github.com/epiverse-trace/bpmodels) is another
Epiverse-TRACE R package that analyses transmission chain data to
infer the transmission process for either the size or length of
transmission chains. Two main differences between the packages are: 1)
`{superspreading}` has more functions to compute metrics that
- [`{epichains}`](https://github.com/epiverse-trace/epichains) is
another Epiverse-TRACE R package that analyses transmission chain data
to infer the likelihood for either the size or length of an outbreak
cluster, or simulate transmission chains. It is based on the, now
retired, [`{bpmodels}`](https://github.com/epiforecasts/bpmodels)
package.

Two main differences between `{superspreading}` and `{epichains}`
are: 1) `{superspreading}` has functions to compute metrics that
characterise outbreaks and superspreading events
(e.g. `probability_epidemic()` & `probability_extinct()`); 2)
`{bpmodels}` can simulate a branching process (`chain_sim()`) with a
specified process (e.g. negative binomial).
(e.g. `probability_epidemic()`, `probability_extinct()`,
`proportion_cluster_size()` & `proportion_transmission()`); whereas
`{epichains}` has functions to calculate the likelihood of a
transmission chain size and length. 2) `{epichains}` exports functions
to simulate a single-type branching process (`simulate_chains()` &
`simulate_chain_stats()`).

- [`{modelSSE}`](https://CRAN.R-project.org/package=modelSSE) has a
similar scope to `{superspreading}`, it contains functions to infer
offspring distribution parameters. It exports several infectious
disease outbreak datasets (see `data(package = "modelSSE")`). Both
`{superspreading}` and `{modelSSE}` export functions to calculate the
proportion of transmission using different methods. It also imports
the [`{Delaporte}`](https://CRAN.R-project.org/package=Delaporte)
package to model the offspring distribution as a Delaporte
distribution.

## References

Expand Down
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Codecov
Conall
CoV
COVID
Delaporte
Delignette
dplyr
Driessche
Expand Down
4 changes: 2 additions & 2 deletions man/probability_contain.Rd

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