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

Simplifies code and add initial_state #10

Merged
merged 7 commits into from
Dec 3, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Correcting doc about initial stateds
  • Loading branch information
gvegayon committed Dec 3, 2023
commit 9c7d3dffbd122178bbc7cff3fd54c702190eb8b7
2 changes: 1 addition & 1 deletion R/ModelSEIR.R
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
#' @family Models
#' @aliases epiworld_seir
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. The user must provide a vector of proportions indicating the following
#' values: (1) Proportion of non-infected agents who are removed, and (2)
#' Proportion of exposed agents to be set as infected.
2 changes: 1 addition & 1 deletion R/ModelSEIRD.R
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
#' @param ... Currently ignore.
#' @export
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. The user must provide a vector of proportions indicating the following
#' values: (1) Proportion of exposed agents who are infected, (2)
#' proportion of non-infected agents already removed, and (3) proportion of
2 changes: 1 addition & 1 deletion R/ModelSEIRDCONN.R
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
#' @param n Number of individuals in the population.
#' @export
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. The user must provide a vector of proportions indicating the following
#' values: (1) Proportion of exposed agents who are infected, (2)
#' proportion of non-infected agents already removed, and (3) proportion of
2 changes: 1 addition & 1 deletion R/ModelSIR.R
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
#' @export
#' @family Models
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. In particular, the user can specify how many of the non-infected
#' agents have been removed at the beginning of the simulation.
#' @aliases epiworld_sir
2 changes: 1 addition & 1 deletion R/ModelSIRCONN.R
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
#' @export
#' @family Models
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. In particular, the user can specify how many of the non-infected
#' agents have been removed at the beginning of the simulation.
#' @returns
2 changes: 1 addition & 1 deletion R/ModelSIRD.R
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
#' @param ... Additional arguments passed to [graphics::plot].
#' @export
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. The user must provide a vector of proportions indicating the following
#' values: (1) proportion of non-infected agents already removed, and (2) proportion of
#' non-ifected agents already deceased.
2 changes: 1 addition & 1 deletion R/ModelSIRDCONN.R
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
#' @param n Number of individuals in the population.
#' @export
#' @details
#' The [initial_state] function allows the user to set the initial state of the
#' The [initial_states] function allows the user to set the initial state of the
#' model. The user must provide a vector of proportions indicating the following
#' values: (1) proportion of non-infected agents already removed, and (2) proportion of
#' non-ifected agents already deceased.
2 changes: 1 addition & 1 deletion man/ModelSEIR.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSEIRD.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSEIRDCONN.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSIR.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSIRCONN.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSIRD.Rd

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

2 changes: 1 addition & 1 deletion man/ModelSIRDCONN.Rd

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

Loading