Integrate dynamic behavioral attributes into epigamesDiffNet#77
Draft
Integrate dynamic behavioral attributes into epigamesDiffNet#77
Conversation
…Issue #75) - Add data-raw/epigames.R: bundles epigames_hourly + dynamic_attrs_hourly.csv into epigames list with new $dyn_attrs slot (long format, 201,366 rows) - Add data-raw/epigamesDiffNet.R: collapses hourly attrs to 15 daily windows, populates vertex.dyn.attrs with mask/med/quarantine proportions per day - Regenerate data/epigames.rda and data/epigamesDiffNet.rda Dynamic attributes (mask, med, quarantine) now visible in print(epigamesDiffNet): Dynamic attributes: mask, med, quarantine (3) Validated: exposure(epigamesDiffNet, attrs = 'mask') works with time-varying data. Correlation with static proxy = 0.88, confirming dynamic attrs capture additional temporal variation.
c5bf4c5 to
6b56bf1
Compare
- Removed redundant comments and sanity checks for better readability - Simplified as_diffnet call structure - Regenerated .rda files to match clean scripts
Member
Author
|
@gvegayon the package now presents a weighted non-cumulative version. The user can construct a simpler network running two lines. This is what the documentation says: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses Issue #75. It updates the
epigamesDiffNetdataset construction pipeline to move behavioral attributes from static averages to dynamic time-varying attributes (vertex.dyn.attrs).Changes
histories.csvlogs.data-raw/epigamesDiffNet.Rto import these dynamic series.mask,med, andquarantineas dynamic variables within theepigamesDiffNetobject.By including dynamic attributes,
exposure()will now correctly account for whether a node or its neighbors were using masks at the exact time of contact, rather than using a 15-day average.