df_r0: Create dataframe for basic reproduction number

View source: R/mcmc_posterior.R

df_r0R Documentation

Create dataframe for basic reproduction number

Description

Create dataframe for basic reproduction number (R0)

Usage

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 = \beta / \gamma. In our model \gamma = 0.1 and \beta is represented by each of the linear function parameters (ex: gpsp0, gpsp1, etc). \beta is the number of transmissions per infected individuals.

Value

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

Examples

#TO DO

thednainus/senegalHIVmodel documentation built on Oct. 14, 2024, 5:46 a.m.