Description Usage Arguments Details See Also
Calculates the target statistics for the formation and dissolution
components of the network model to be estimated with netest
.
1 2 3 4 5 6 7 8 9 | calc_nwstats_msm(time.unit = 7, method = 1, num.B, num.W, num.B.msm,
num.W.msm, num.B.asmm, num.W.asmm, deg.mp.B, deg.mp.W, mdeg.inst.B,
mdeg.inst.W, deg.asmm, cross.frac, 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, diss.asmm, durs.main, durs.pers,
rates.asmm, durs.asmm, ages, ages.asmm, ages.yamsm, ages.oamsm, ages.msm,
birth.age, out.age.prob, debut.entry.prob, debut.prob, asmr.B, asmr.W,
role.B.prob.msm, role.W.prob.msm, role.B.prob.asmm, role.W.prob.asmm,
role.shift)
|
time.unit |
Time unit relative to 1 for daily. |
method |
Method for calculating target statistics by race, with options of
|
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
|
qnts.W |
Means of one-off rates split into quintiles for black MSM. Use
|
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 |
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. |
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.
Network statistics calculated here are entered into base_nw_msm
to construct the base network, and then into the parameters in
param_msm
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.