CombineData {hivPlatform} | R Documentation |
Combines case-based and aggregated data for HIV Model
CombineData( caseData, aggrData, popCombination = NULL, aggrDataSelection = NULL )
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: |
List of aggregated data asets
## 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)