jrgant / egcmsm_artnet Goto Github PK
View Code? Open in Web Editor NEWCode for ARTNet data analysis and network parameterization/simulation
Code for ARTNet data analysis and network parameterization/simulation
To do in main/casual models
main_formation <- ~edges +
nodefactor("race.eth", levels = -1) +
nodefactor("age5", levels = -1) +
nodefactor("deg.casl", levels = -1) +
concurrent +
nodematch("race.eth") +
nodematch("age5") +
nodematch("ai.role", levels = c("R", "I"))
Ribbon: middle 95% of simulations
Removed degrange
term altogether: since main degree truncated at 2, redundant to have both a concurrency
term and a term specifying the number of nodes with degree of โฅ 2?
Tried an agemix
term, but many coefficient estimates returned as NA
, similar issues when using absdiff(sqrt_age): went with a nodematch
term for age
casl_formation <- ~edges +
nodefactor("race.eth", levels = -1) +
nodefactor("age5", levels = -1) +
nodefactor("deg.main", levels = -1) +
concurrent +
degrange(from = 4) +
nodematch("race.eth")
Ribbon: middle 95% of simulations
nodematch("age5")
or nodematch("ai.role", levels = c("R", "I"))
, ergm kicks back an "excessive correlation between model terms" warning.To do in one-time partnerships:
Document created variables and write up relevant methods from DataCleaning.Long.R and the network stats/estimation files.
Adjusting Target Stats
Unfortunately, I wasn't able to finish adjusting the target stats today to get the models running with age- and race/ethnicity nodematches.
For instance, I think my original target stats were such that the calculations for the nodematch terms implied different numbers of edges than the edges term, and I suspect the same goes for the other terms in the formation models.
I'm still in the process of recalculating the target stats using a standardization scheme that I think should fix these inconsistencies and hopefully allow for inclusion of the terms that are currently causing problems. Will discuss on our call.
Node factor calculation for causal degree by main degree implies incorrect number of total edges in casual formation model (about 1,000 edges off).
Need to fix a kludge for correcting imputed partnership start dates that were filled in as occurring after sub_date.
Doesn't affect very many records. Low overhead and low priority for the moment.
Main/casual model estimations
The model diagnostics look really dicey, particularly the main, but I still have to add a couple of parameters (estimated, just not added to the models yet). SEE UPDATE IN COMMENT THREAD
Could not accounting for heterogeneity in dissolution rates contributes to this? I saw in the ARTNet paper that the dissolution rate varies by race/ethnicity and age
Currently focusing on the demographic inputs to the model, but will eventually add HIV diagnosis status too.
MCMLE procedure
Each time I run the models, the number of steps to convergence (when achieved) differs each time
Despite the procedure's reporting convergence, many of the trace plots don't look great to me.
Estimates of ongoing partnerships
For the most part I'm getting the same or very similar answers, comparing them to the Epidemics paper, but I can't seem to get the ongoing/inactive partnership breakdowns within main and casual partnerships, respectively, to match.
A couple of small differences in how I analyzed that I don't think affect the estimates:
PARTXONGOING
and PARTXMAINONG
.Perhaps I've assigned ongoingness incorrectly (see: 02b-DataCleaning-Long.R
)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.