EpiModel / CombPrevNet

The Role of HIV Partner Services in the Modern Biomedical HIV Prevention Era
GNU General Public License v3.0
2 stars 0 forks source link

Testing of Process Schematics #46

Closed andsv2 closed 3 years ago

andsv2 commented 3 years ago

The below will run through testing of each stage of the CombPrevNet workflow in EpiModelHIV.

andsv2 commented 3 years ago

Process Schematic 1: Partner Identification

init <- init_msm()

control3 <- control_msm(simno = 1001, nsteps = 2, ncores = 1, nsims = 1, save.nwstats = FALSE, save.clin.hist = FALSE, tergmLite = TRUE)

set.seed(123)

dat <- initialize_msm(est, param, init, control3, s = 1)

for (at in 2:9) { dat <- aging_msm(dat, at) dat <- departure_msm(dat, at) dat <- arrival_msm(dat, at) dat <- partident_msm(dat, at) dat <- hivtest_msm(dat, at) dat <- hivtx_msm(dat, at) dat <- hivprogress_msm(dat, at) dat <- hivvl_msm(dat, at) dat <- simnet_msm(dat, at) dat <- acts_msm(dat, at) dat <- condoms_msm(dat, at) dat <- position_msm(dat, at) dat <- prep_msm(dat, at) dat <- hivtrans_msm(dat, at) dat <- stitrans_msm(dat, at) dat <- stirecov_msm(dat, at) dat <- stitx_msm(dat, at) dat <- prevalence_msm(dat, at) verbose.net(dat, "progress", at = at) }

at = 10 dat <- aging_msm(dat, at) dat <- departure_msm(dat, at) dat <- arrival_msm(dat, at) dat <- partident_msm(dat, at)

From debug of partident_msm: identified partnership list

head(plist.ident)

#

partnerUID ptype start stop partnerPID

1 6658 1 1 NA 6512

2 14919 1 1 NA 14619

3 14202 1 1 NA 13922

4 5959 1 1 NA 5826

5 19365 1 1 NA 18990

6 19806 1 1 NA 19417

dat$attr$uid[c(6512, 14619, 13922, 5826, 18990, 19417)] [1] 6658 14919 14202 5959 19365 19806

andsv2 commented 3 years ago

Process Schematic 2: Identified Partner Testing

dat$attr$part.scrnd[head(eligPart)] [1] 2 2 2 2 2 2

andsv2 commented 3 years ago

Process Schematic 3: PrEP initiation