CombineData {hivPlatform}R Documentation

CombineData

Description

Combines case-based and aggregated data for HIV Model

Usage

CombineData(
  caseData,
  aggrData,
  popCombination = NULL,
  aggrDataSelection = NULL
)

Arguments

caseData

Case-based data (before or after adjustments). Required.

aggrData

Aggregated data. Required.

popCombination

List of populations to combine per case-based and aggregated data. Required.

aggrDataSelection

Data.table with specification of aggregated data selection. Contains columns: DataType, Use, MinYear, MaxYear

Value

List of aggregated data asets

Examples

## Not run: 
popCombination <- list(
  Case = list(Values = c('M'), Variables = c('Gender')),
  Aggr = c('pop_0')
)
aggrDataSelection <- data.table(
  Name = c('Dead', 'AIDS', 'HIV', 'HIVAIDS', 'HIV_CD4_1', 'HIV_CD4_2', 'HIV_CD4_3', 'HIV_CD4_4'),
  Use = c(TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE),
  MinYear = c(1990, 1991, 1992, 1992, 1992, 1992, 1992, 1992),
  MaxYear = c(2015, 2019, 2013, 2013, 2013, 2013, 2013, 2013)
)
CombineData(caseBasedData, aggregatedData, popCombination, aggrDataSelection)

## End(Not run)


[Package hivPlatform version 2.0.5 Index]