split_mmc_design_matrices_paed: Split MMC Design Matrices between adult and paediatric...

View source: R/model_prep.R

split_mmc_design_matrices_paedR Documentation

Split MMC Design Matrices between adult and paediatric populations

Description

Take MMC-related design matrices and effectively "split" them into two parts; one paediatric set of design matrices which does not include any time-related components, and one non-paediatric set.

Usage

split_mmc_design_matrices_paed(
  out,
  area_lev,
  design_matrices,
  paed_age_cutoff = 10
)

Arguments

out

Shell dataset (outputted by create_shell_dataset with a row for every unique record in circumcision survey data for a given area. Also includes empirical estimates for circumcision estimates for each unique record.

area_lev

PSNU area level for specific country.

design_matrices

Design matrices for fixed effects and temporal, age, spatial and random effects, for both medical and traditional circumcision.

paed_age_cutoff

Age at which to split MMC design matrices between paediatric and non-paediatric populations, the former of which are constant over time. Set to NULL if not desired, Default: NULL


mrc-ide/threemc documentation built on Feb. 9, 2024, 5:16 p.m.