Package: discord 1.3

S. Mason Garrison

discord: Functions for Discordant Kinship Modeling

Functions for discordant kinship modeling (and other sibling-based quasi-experimental designs). Contains data restructuring functions and functions for generating biometrically informed data for kin pairs. See [Garrison and Rodgers, 2016 <doi:10.1016/j.intell.2016.08.008>], [Sims, Trattner, and Garrison, 2024 <doi:10.3389/fpsyg.2024.1430978>] for empirical examples, and [Garrison and colleagues for theoretical work <doi:10.1101/2025.08.25.25334395>].

Authors:S. Mason Garrison [aut, cre, cph], Jonathan Trattner [aut], Yoo Ri Hwang [aut], Cermet Ream [ctb]

discord_1.3.tar.gz
discord_1.3.zip(r-4.7)discord_1.3.zip(r-4.6)discord_1.3.zip(r-4.5)
discord_1.3.tgz(r-4.6-any)discord_1.3.tgz(r-4.5-any)
discord_1.3.tar.gz(r-4.7-any)discord_1.3.tar.gz(r-4.6-any)
discord_1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
discord/json (API)

# Install 'discord' in R:
install.packages('discord', repos = c('https://r-computing-lab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-computing-lab/discord/issues

Pkgdown/docs site:https://r-computing-lab.github.io

Datasets:

On CRAN:

Conda:

6.89 score 1 stars 48 scripts 385 downloads 1 mentions 5 exports 0 dependencies

Last updated from:86513d1953. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK150
source / vignettesOK209
linux-release-x86_64OK162
macos-release-arm64OK95
macos-oldrel-arm64OK127
windows-develOK102
windows-releaseOK104
windows-oldrelOK103
wasm-releaseOK126

Exports:discord_between_modeldiscord_datadiscord_regressiondiscord_within_modelkinsim

Dependencies:

Visualizing Sibling Differences
Overview | Data Preparation | Data Cleaning | Load the data | Get kinship links for individuals with the following variables: | Create the df_flu_modeling object with only consistent responders. | Clean the column names with the {janitor} package. | Setting Up Color Palette | Plotting the Results | Individual Level Plot | Family Level Plots | Between Family Plots | Adding Marginal Density Plots | Assembling the Final Plot | Bonus: Faceting by SES Difference Group | Within Family Plots | Conclusion

Last update: 2026-02-21
Started: 2025-04-29

Full Data Workflow
Introduction | Data Structures and Preparation | Wide Format Data | Long Format Data | Converting Long to Wide | Using existing kinship links | Pedigree Data | Computing Kinship Matrices | Creating Wide-Format Kinship Pairs | Simulating Outcome and Predictor Variables | Ordering and Derived Variables | Understanding the Transformation | Data Selection for Standard OLS Regression | Analyzing the Data | Standard OLS Regression | Discordant Between-Family Regression | Discordant-Kinship Regression | Using the Helper Function | Comparing the Three Approaches | Side-by-Side Model Comparison | Interpreting the Differences | Conclusion | Session Info

Last update: 2026-01-18
Started: 2025-10-05

No Database? No Problem: Using discord with Simple Family Structures
Introduction | Loading Packages and Data | Constructing Kinship Links | Simulate Phenotypic Data | Fitting a Discordant-Kinship Regression Model | Alternative Specifications | Conclusion | References

Last update: 2026-01-18
Started: 2025-04-03

Handling categorical predictors with discord
Introduction | Purpose | Understanding Variable Types in Dyadic Analysis | Coding Approaches for Categorical Variables | Binary-match Coding | Multi-match Coding | Data Preparation | Package Loading and Data Setup | Handling Categorical Predictors | Mixed Variables: Sex as an Example | Between-dyad Variable: Race as an Example | Combining Binary and Multi-match Variables | Results and Interpretation | Regression Analysis: Sex Variables | Binary Match Coding for Sex | Interpretation: | Multi-Match Coding for Sex | Mean SES Model with Sex | Regression Analysis: Race Variables | Multimatch | Mean SES Model with Race | Regression Analysis: Combined Sex and Race Variables | Interpretation | Alternative Model: Binary Sex Match and Multi-Match Race | Mean SES Models with Both Variables | Mean SES Models with Combining multimatch and binarymatch | Conclusion | Implementation Recommendations: | References

Last update: 2025-10-14
Started: 2023-11-07

NLSY: Regression demonstration with Flu Vaccination and SES data
Introduction | Data Description | Data Cleaning | Prepare person-level data | Create kinship-linked data | Modeling and Interpretation | Conclusion | Acknowledgments | Session Info | References

Last update: 2025-10-06
Started: 2023-09-27