MIaggregate: Aggregates the HIV incidence results after mutiple...

View source: R/getIncidence.R

MIaggregateR Documentation

Aggregates the HIV incidence results after mutiple imputation.

Description

Aggregates results after mutiple imputation.

Usage

MIaggregate(dat, col_names = c("sero_event", "pyears"))

Arguments

dat

List of results.

col_names

Names used to collect columns into a data.frame.

Value

data.frame

Examples

Args <- setArgs(nSim=2, mcores=1)
rtdat <- getRTData(dat=getHIV())
mdat <- MIdata(rtdat, Args)
mdat <- mitools::imputationList(mdat)
inc <- with(mdat, fun=AggByYear)
MIaggregate(inc)

vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.