calc_nwstats_msm: Calculate Target Statistics for Network Model Estimation

Description Usage Arguments Details See Also

Description

Calculates the target statistics for the formation and dissolution components of the network model to be estimated with netest.

Usage

1
2
3
4
5
calc_nwstats_msm(time.unit = 7, method = 2, num.B, num.W, deg.mp.B,
  deg.mp.W, mdeg.inst.B, mdeg.inst.W, qnts.B, qnts.W, prop.hom.mpi.B,
  prop.hom.mpi.W, balance = "mean", sqrt.adiff.BB, sqrt.adiff.WW,
  sqrt.adiff.BW, diss.main, diss.pers, durs.main, durs.pers, ages, asmr.B,
  asmr.W, role.B.prob, role.W.prob)

Arguments

time.unit

Time unit relative to 1 for daily.

method

Method for calculating target statistics by race, with options of 2 for preserving race-specific statistics and 1 for averaging over the statistics and dropping the race-specific terms.

num.B

Population size of black MSM.

num.W

Population size of white MSM.

deg.mp.B

Degree distribution matrix for main and casual partners for black MSM, as a 2 by 3 matrix.

deg.mp.W

Degree distribution matrix for main and causal partners for white MSM, as a 2 by 3 matrix.

mdeg.inst.B

Mean degree, or rate, of one-off partnerships per day for black MSM.

mdeg.inst.W

Mean degree, or rate, of one-off partnerships per day for white MSM.

qnts.B

Means of one-off rates split into quintiles for white MSM. Use NA to ignore these quantiles in the target statistics.

qnts.W

Means of one-off rates split into quintiles for black MSM. Use NA to ignore these quantiles in the target statistics.

prop.hom.mpi.B

A vector of length 3 for the proportion of main, casual, and one-off partnerships in same race for black MSM.

prop.hom.mpi.W

A vector of length 3 for the proportion of main, casual, and one-off partnerships in same race for white MSM.

balance

Method for balancing of edges by race for number of mixed-race partnerships, with options of "black" to apply black MSM counts, "white" to apply white MSM counts, and "mean" to take the average of the two expectations.

sqrt.adiff.BB

Vector of length 3 with the mean absolute differences in the square root of ages in main, casual, and one-off black-black partnerships.

sqrt.adiff.WW

Vector of length 3 with the mean absolute differences in the square root of ages in main, casual, and one-off white-white partnerships.

sqrt.adiff.BW

Vector of length 3 with the mean absolute differences in the square root of ages in main, casual, and one-off black-white partnerships.

diss.main

Dissolution model formula for main partnerships.

diss.pers

Dissolution model formula for casual partnerships.

durs.main

Vector of length 3 with the duration of BB, BW, and WW main partnerships in days.

durs.pers

Vector of length 3 with the duration of BB, BW, and WW casual partnerships in days.

ages

Integer vector of ages in years that defines range of possible initial ages in the population.

asmr.B

Vector of length 40 defining the age-specific mortality rate for persons within that age slot, for black MSM.

asmr.W

Vector of length 40 defining the age-specific mortality rate for persons within that age slot, for white MSM.

role.B.prob

Vector of length 3 for the probability of sexual role as insertive, receptive, and versatile, for black MSM.

role.W.prob

Vector of length 3 for the probability of sexual role as insertive, receptive, and versatile, for white MSM.

Details

This function performs basic calculations to determine the components of the formationa and dissolution models for the network model estimation to be conducted with netest. The inputs inputs for this function are calculated externally to the package in a setup scenario file.

See Also

Network statistics calculated here are entered into base_nw_msm to construct the base network, and then into the parameters in param_msm.


dth2/EpiModelHIV_SHAMP documentation built on May 15, 2019, 4:56 p.m.