create_integration_matrices: Create Integration Matrices for Selecting Instantaneous...

View source: R/model_prep.R

create_integration_matricesR Documentation

Create Integration Matrices for Selecting Instantaneous Hazard

Description

Create (unlagged and lagged) integration matrices for selecting instantaneous hazard rate, required for fitting TMB model.

Usage

create_integration_matrices(
  out,
  area_lev = NULL,
  time1 = "time1",
  time2 = "time2",
  age = "age",
  strat = "space",
  ...
)

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.

time1

Variable name for time of birth, Default: "time1"

time2

Variable name for time circumcised or censored, Default: "time2"

age
  • Variable with age circumcised or censored. Default: "age"

strat

Variable to stratify by in using a 3D hazard function, Default: NULL

...

Further arguments passed to or from other methods.

Value

list of length 2 of integration matrices for selecting instantaneous hazard rate.

See Also

create_shell_dataset create_integration_matrix_agetime create_integration_matrix_agetime_lag


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