generate_probM_forecast: Time varying microcephaly risk not aborted

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Calculates the probability of a birth having microcephaly at a given time

Usage

1
2
generate_probM_forecast(riskI, probM, bp, abortion_rate, birth_reduction,
  switch_t, abortion_time, ABORTED)

Arguments

riskI

the relative risk of infection over time as generated by generate_riskI

probM

the time varying risk of developing microcephaly given infection over the course of gestation. Time steps should be the same as riskI

bp

the baseline probability of microcephaly

abortion_rate

probability of a women having an abortion given that she was infected

birth_reduction

reduced probability of getting infected, synonymous with probability of avoiding pregnancy

switch_t

integer for index after which behaviour changes

abortion_time

integer for last allowable abortion day/week in gestational time

ABORTED

if TRUE, then return the number of aborted cases. If FALSE, return the number of not aborted cases.

Value

the vector of microcephaly probabilities


jameshay218/zikaProj documentation built on Jan. 9, 2020, 7:26 p.m.