Repository navigation
Update vignettes and plots for Behavior and depressiveness analysis - #58
Open
smasongarrison wants to merge 3 commits into
Open
smasongarrison wants to merge 3 commits into
smasongarrison wants to merge 3 commits into
Conversation
Add three individual-level figure assets and overhaul vignettes/plots.Rmd to use Behavior and depressiveness variables instead of SES and flu. Renamed y1/y2 mappings to depressiveness/Behavior, updated data-frame names (df_discord_depressiveness, df_used), renamed grouping variables (mom_diff_group), adjusted plot labels/titles/legends and color scaling to reference Behavior/depressiveness, changed one code chunk eval flag, and added code to save individual_level_plot_b.png. Mostly text/label/variable substitutions and minor plotting logic updates to reflect the new outcome/predictor terminology.
Up to standards ✅🟢 Issues
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
=======================================
Coverage 91.20% 91.20%
=======================================
Files 7 7
Lines 853 853
=======================================
Hits 778 778
Misses 75 75 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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 pull request significantly updates the
vignettes/plots.Rmdvignette to use synthetic data and new variable names, shifting the focus from socioeconomic status (SES) and flu vaccinations to "Behavior" and "depressiveness" in kinship pairs. The code and narrative are revised throughout to reflect this new context, including data loading, processing, variable naming, and plot labeling. The changes also streamline the workflow by using synthetic datasets and thediscord_data()function for data generation and preparation.Key changes include:
1. Data Source and Structure Updates
mz_signif,mz_nonsignif) and generates discordant kin data usingdiscord_data(), focusing on "Behavior" and "depressiveness" as the primary variables. [1] [2]2. Variable and Grouping Name Refactoring
s00_h40_mean→Behavior_mean,flu_total_mean→depressiveness_mean,ses_diff_group→mom_diff_group, to match the new synthetic data context. [1] [2]3. Plot and Label Updates
4. Narrative and Documentation Alignment
5. Code Cleanup and Output Enhancements
These changes modernize the vignette, making it more generalizable and focused on illustrating patterns in synthetic kinship data using the
discord_data()workflow.