concurr.pointprev.calculator: Calculate concurrent point prevalence, overall and...

Description Usage Arguments Value Examples

View source: R/concurrent.point.prevalence.R

Description

Calculate the concurrent point prevalence, for specific age groups and gender strata.

Usage

1
2
concurr.pointprev.calculator(datalist = datalist, agegroup = c(15, 50),
  timepoint, hivstatus = 2)

Arguments

datalist

The datalist that is produced by readthedata

agegroup

Boundaries of the age group (lower bound <= age < upper bound) that should be retained, e.g. c(15, 30)

timepoint

Point in time at which the imaginary behavioural survey takes place.

hivstatus

HIV status at the time of the survey. Options are 2, means all; 0 means only HIV-negative, 1 means only HIV-positive.

Value

A dataframe with concurrent point prevalence estimate and surrounding confidence bounds, for the specified time point, age group and hiv status, overall, and stratified by gender

Examples

1
2
3
4
data(datalist)
concurrent.pointprev.df <- concurr.pointprev.calculator(datalist = datalist, agegroup = c(15,50),
timepoint = 10, hivstatus = 2)
concurrent.pointprev.df

wdelva/RSimpactHelp documentation built on Dec. 26, 2019, 3:42 a.m.