Prepare model frames for survey datasets

survey_mf(
  survey_ids,
  indicator,
  survey_hiv_indicators,
  naomi_mf,
  use_kish = TRUE,
  deff = 1,
  min_age = 0,
  max_age = 80,
  use_aggregate = FALSE
)

Arguments

survey_ids

Survey IDs

indicator

Indicator to filter, character string

survey_hiv_indicators

Survey HIV indicators

naomi_mf

Naomi model frame

use_kish

Logical whether to use Kish effective sample size

deff

Assumed design effect for scaling effective sample size

min_age

Min age for calculating recent infection

max_age

Max age for calculating recent infection

use_aggregate

Logical; use aggregate survey data as provided instead of subsetting fine area/sex/age group stratification.