Learn R Programming

discord

The goal of discord is to provide functions for discordant kinship modeling and other sibling-based quasi-experimental designs. It has highly customizable, efficient code for generating genetically-informed simulations and provides user-friendly functions to perform discordant-kinship regressions.

Installation

You can install the official version from CRAN

# Install/update discord with the release version from CRAN.
install.packages('discord')

You can also install/update discord with the development version of discord from GitHub with:

# If devtools is not installed, uncomment the line below.
# install.packages('devtools')
devtools::install_github('R-Computing-Lab/discord')

Citation

If you use discord in your research or wish to refer to it, please cite the following paper:

citation(package = "discord")
To cite package 'discord' in publications use:

  Garrison S, Trattner J, Hwang Y (2025). _discord: Functions for
  Discordant Kinship Modeling_. R package version 1.2.3,
  <https://github.com/R-Computing-Lab/discord>.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {discord: Functions for Discordant Kinship Modeling},
    author = {S. Mason Garrison and Jonathan Trattner and Yoo Ri Hwang},
    year = {2025},
    note = {R package version 1.2.3},
    url = {https://github.com/R-Computing-Lab/discord},
  }

Contributing

Contributions to the discord project are welcome. For guidelines on how to contribute, please refer to the Contributing Guidelines. Issues and pull requests should be submitted on the GitHub repository. For support, please use the GitHub issues page.

License

discord is licensed under the GNU General Public License v3.0. For more details, see the LICENSE file.

Copy Link

Version

Install

install.packages('discord')

Monthly Downloads

236

Version

1.2.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

S. Mason Garrison

Last Published

April 6th, 2025

Functions in discord (1.2.3)

kinsim

Simulate Biometrically Informed Multivariate Data
check_sibling_order

Check Sibling Order
discord_data

Restructure Data to Determine Kinship Differences
check_discord_errors

Check Discord Errors
data_sample

Sample Data from NLSY
discord_cond

Custom Conditions for the discord package
discord_regression

Perform a Linear Regression within the Discordant Kinship Framework
make_mean_diffs

Make Mean Differences
data_flu_ses

Flu Vaccination and SES Data
discord_regression_legacy

Legacy Code: Discord Regression
kinsim_internal

Simulate Kinship-Based Biometrically Informed Univariate Data
discord-package

discord: Functions for Discordant Kinship Modeling
discord_data_legacy

Legacy Code: Restructure Data
rmvn

Generate Multivariate Normal Random Variates