Commit bf164721 authored by Facundo Muñoz's avatar Facundo Muñoz ®️
Browse files

Remove UTF-8 from epidemic_threshold()'s documentation

- Caused errors installing in some locales (bug report Javad)
parent 9ba27bd6
Package: mapMCDA Package: mapMCDA
Title: Produce an epidemiological risk map by weighting multiple risk Title: Produce an epidemiological risk map by weighting multiple risk
factors factors
Version: 0.4.8 Version: 0.4.9
Date: 2019-04-12 Date: 2019-04-24
Authors@R: c( person("Andrea", "Apolloni", email = Authors@R: c( person("Andrea", "Apolloni", email =
"andrea.apolloni@cirad.fr", role = c("ctb"), comment = "Animal "andrea.apolloni@cirad.fr", role = c("ctb"), comment = "Animal
mobility algorithm"), person("Elena", "Arsevska", email = mobility algorithm"), person("Elena", "Arsevska", email =
......
...@@ -274,15 +274,15 @@ setMethod( ...@@ -274,15 +274,15 @@ setMethod(
#' network. It is computed as the inverse of the \emph{Potential for #' network. It is computed as the inverse of the \emph{Potential for
#' transmission} of the network: a measure of the expected number of #' transmission} of the network: a measure of the expected number of
#' nodes affected by an infectious node, which is a generalisation of #' nodes affected by an infectious node, which is a generalisation of
#' the Basic Reproduction Number \eqn{R_0}{R₀} of an epidemy to the #' the Basic Reproduction Number \eqn{R_0} of an epidemy to the
#' context of a network. It thus quantifies the potential for #' context of a network. It thus quantifies the potential for
#' transmission of an infection throughout the contact network. It is #' transmission of an infection throughout the contact network. It is
#' computed in terms of the incoming-outgoing rates from the network's #' computed in terms of the incoming-outgoing rates from the network's
#' nodes: \deqn{R_0 = \beta \frac{\hat{k_\mathrm{in} #' nodes: \deqn{R_0 = \beta \frac{\hat{k_\mathrm{in}
#' k_\mathrm{out}}}{\hat{k_\mathrm{in}}},}{R = \betak_in*k_out〉/〈k_in,} #' k_\mathrm{out}}}{\hat{k_\mathrm{in}}},}{R_0 = \beta <k_in*k_out>/<k_in>,}
#' where \eqn{\beta} is the transmission coefficient among animals, #' where \eqn{\beta} is the transmission coefficient among animals,
#' \eqn{k_\mathrm{in/out}}{k_in/out} are the in/out-degrees of a node #' \eqn{k_\mathrm{in/out}}{k_in/out} are the in/out-degrees of a node
#' and the \eqn{\hat{\cdot}}{〈·〉} symbol represents the average value #' and the \eqn{<·>} symbol represents the average value
#' across all nodes in the graph. #' across all nodes in the graph.
#' #'
#' The unweighted value computed above is most appropriate for a #' The unweighted value computed above is most appropriate for a
...@@ -303,7 +303,7 @@ setMethod( ...@@ -303,7 +303,7 @@ setMethod(
#' @param beta numeric, between 0 and 1. Probability of transmission. #' @param beta numeric, between 0 and 1. Probability of transmission.
#' #'
#' @return a list the weighted and unweighted Potential for #' @return a list the weighted and unweighted Potential for
#' Transmission \eqn{R_0}{R₀} and its inverse, the Epidemic #' Transmission \eqn{R_0} and its inverse, the Epidemic
#' Threshold \eqn{q}. As an attribute named "sna", a data.frame with #' Threshold \eqn{q}. As an attribute named "sna", a data.frame with
#' the in/out-degrees of each node and their individual contribution #' the in/out-degrees of each node and their individual contribution
#' to R0. #' to R0.
......
...@@ -13,7 +13,7 @@ epidemic_threshold(x, beta = 1) ...@@ -13,7 +13,7 @@ epidemic_threshold(x, beta = 1)
} }
\value{ \value{
a list the weighted and unweighted Potential for a list the weighted and unweighted Potential for
Transmission \eqn{R_0}{R₀} and its inverse, the Epidemic Transmission \eqn{R_0} and its inverse, the Epidemic
Threshold \eqn{q}. As an attribute named "sna", a data.frame with Threshold \eqn{q}. As an attribute named "sna", a data.frame with
the in/out-degrees of each node and their individual contribution the in/out-degrees of each node and their individual contribution
to R0. to R0.
...@@ -29,15 +29,15 @@ transmission coefficient necessary for diffusing an epidemy in a ...@@ -29,15 +29,15 @@ transmission coefficient necessary for diffusing an epidemy in a
network. It is computed as the inverse of the \emph{Potential for network. It is computed as the inverse of the \emph{Potential for
transmission} of the network: a measure of the expected number of transmission} of the network: a measure of the expected number of
nodes affected by an infectious node, which is a generalisation of nodes affected by an infectious node, which is a generalisation of
the Basic Reproduction Number \eqn{R_0}{R₀} of an epidemy to the the Basic Reproduction Number \eqn{R_0} of an epidemy to the
context of a network. It thus quantifies the potential for context of a network. It thus quantifies the potential for
transmission of an infection throughout the contact network. It is transmission of an infection throughout the contact network. It is
computed in terms of the incoming-outgoing rates from the network's computed in terms of the incoming-outgoing rates from the network's
nodes: \deqn{R_0 = \beta \frac{\hat{k_\mathrm{in} nodes: \deqn{R_0 = \beta \frac{\hat{k_\mathrm{in}
k_\mathrm{out}}}{\hat{k_\mathrm{in}}},}{R = \betak_in*k_out〉/〈k_in,} k_\mathrm{out}}}{\hat{k_\mathrm{in}}},}{R_0 = \beta <k_in*k_out>/<k_in>,}
where \eqn{\beta} is the transmission coefficient among animals, where \eqn{\beta} is the transmission coefficient among animals,
\eqn{k_\mathrm{in/out}}{k_in/out} are the in/out-degrees of a node \eqn{k_\mathrm{in/out}}{k_in/out} are the in/out-degrees of a node
and the \eqn{\hat{\cdot}}{〈·〉} symbol represents the average value and the \eqn{<·>} symbol represents the average value
across all nodes in the graph. across all nodes in the graph.
The unweighted value computed above is most appropriate for a The unweighted value computed above is most appropriate for a
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment