df_r0: Create dataframe for basic reproduction number

Description Usage Arguments Details Value Examples

View source: R/mcmc_posterior.R

Description

Create dataframe for basic reproduction number (R0)

Usage

1
df_r0(run, burnin, par_names, times, T0, T1, GAMMA)

Arguments

run

object of class "mcmcSamplerList" and "bayesianOutput"

burnin

intenger representing number of samples to remove as burnin

par_names

vector containinig the parameter names

times

vector of time points

T0

initial time for simulations

T1

end time for simulations

GAMMA

double representing the stage of infection

Details

Basic Reproduction Number (R0) is calculated based on the equation R0 = β / γ. In our model γ = 0.1 and β is represented by each of the linear function parameters (ex: gpsp0, gpsp1, etc). β is the number of transmissions per infected individuals.

Value

dataframe of median, and upper and lower bounds for the posterior, and MAP

Examples

1
#TO DO

thednainus/senegalHIVmodel documentation built on Oct. 28, 2021, 3:11 p.m.