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

One-off Partnerships: Start Time = Stop Time #14

Closed andsv2 closed 4 years ago

andsv2 commented 4 years ago

One-off partnerships that occur at timestep at = t, need to have both their start and stop times set to at.

andsv2 commented 4 years ago

Type 3 partnerships have been updated to set start and stop times at the same timestep in both init_plist:

plist[,"stop"][which(plist[,3] == 3)] <- 1

and update_plist:

    ooff <- which(plist1[,"ptype"] == 3 & plist1[,"start"] == at)
    plist1[,"stop"][ooff] <- at

Commit