Code Monkey home page Code Monkey logo

egcmsm_artnet's People

Contributors

jrgant avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

egcmsm_artnet's Issues

Outstanding tasks for main/casual models

To do in main/casual models

  • Add concurrency parameters
  • Add absolute difference in square root of ages
  • Add nodemix terms
  • Truncate casual degree to 4 max ongoing partnerships

Project Meeting, 2020-02-11

Current Main Formation Specification

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
image

Issues/Questions

  • 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

Current Casual Formation Specification

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
image

Issues/Questions

  • If I add either nodematch("age5") or nodematch("ai.role", levels = c("R", "I")), ergm kicks back an "excessive correlation between model terms" warning.

Documentation

Document created variables and write up relevant methods from DataCleaning.Long.R and the network stats/estimation files.

Project Meeting, 2020-02-24

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.

Casual Degree by Main Degree

Node factor calculation for causal degree by main degree implies incorrect number of total edges in casual formation model (about 1,000 edges off).

Imputed partnership start dates

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.

Project Meeting, 2020-01-30

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

    • Natural, or am I missing where to set a random seed?
  • 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:

    • Imputed age slightly differently
    • Assigned partnership start date differently, but ongoing partnerships flagged based on PARTXONGOING and PARTXMAINONG.
  • Perhaps I've assigned ongoingness incorrectly (see: 02b-DataCleaning-Long.R)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.