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")
Warning in citation(package = "discord"): could not determine year for
'discord' from package DESCRIPTION file
To cite package 'discord' in publications use:

  Garrison S, Trattner J, Hwang Y (????). _discord: Functions for
  Discordant Kinship Modeling_. R package version 1.2.4.1,
  <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},
    note = {R package version 1.2.4.1},
    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

368

Version

1.2.4.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

S. Mason Garrison

Last Published

June 10th, 2025

Functions in discord (1.2.4.1)

kinsim

Simulate Biometrically Informed Multivariate Data
discord_cond

Custom Conditions for the discord package
discord_between_model

Perform a Between-Family Linear Regression within the Discordant Kinship Framework
discord_data_ram_optimized

Discord Data RAM Optimized
discord_data

Restructure Data to Determine Kinship Differences
check_discord_errors

Check Discord Errors
check_sibling_order

Check Sibling Order
data_sample

Sample Data from NLSY
data_flu_ses

Flu Vaccination and SES Data
discord_data_legacy

Legacy Code: Restructure Data
discord_data_fast

Discord Data Fast
discord_regression_legacy

Legacy Code: Discord Regression
check_sibling_order_ram_optimized

Check Sibling Order RAM Optimized
make_mean_diffs

Make Mean Differences
kinsim_internal

Simulate Kinship-Based Biometrically Informed Univariate Data
discord-package

discord: Functions for Discordant Kinship Modeling
discord_regression

Perform a Linear Regression within the Discordant Kinship Framework
.rmvn

Generate Multivariate Normal Random Variates