{
  "_id": "6a0ff2d5acfb0bcc41c77136",
  "Package": "discord",
  "Type": "Package",
  "Title": "Functions for Discordant Kinship Modeling",
  "Version": "1.3",
  "Authors@R": "c(person(\"S. Mason\", \"Garrison\", email = \"garrissm@wfu.edu\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-4804-6003\")),\nperson(\"Jonathan\", \"Trattner\", email = \"code@jdtrat.com\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-1097-7603\")),\nperson(\"Yoo Ri\", \"Hwang\", email = \"yrhwang89@gmail.com\",\nrole = \"aut\"),\nperson(\"Cermet\", \"Ream\", role = c(\"ctb\")))",
  "Description": "Functions for discordant kinship modeling (and other\nsibling-based quasi-experimental designs). Contains data\nrestructuring functions and functions for generating\nbiometrically informed data for kin pairs. See [Garrison and\nRodgers, 2016 <doi:10.1016/j.intell.2016.08.008>], [Sims,\nTrattner, and Garrison, 2024 <doi:10.3389/fpsyg.2024.1430978>]\nfor empirical examples, and [Garrison and colleagues for\ntheoretical work <doi:10.1101/2025.08.25.25334395>].",
  "URL": "https://github.com/R-Computing-Lab/discord,\nhttps://r-computing-lab.github.io/discord/",
  "License": "GPL-3",
  "LazyData": "TRUE",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Repository": "https://r-computing-lab.r-universe.dev",
  "Date/Publication": "2026-02-21 02:25:14 UTC",
  "RemoteUrl": "https://github.com/r-computing-lab/discord",
  "RemoteRef": "HEAD",
  "RemoteSha": "86513d1953b9d4c760c132ab5fcb716629eece85",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 06:04:51 UTC",
    "User": "root"
  },
  "Author": "S. Mason Garrison [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-4804-6003>),\nJonathan Trattner [aut] (ORCID:\n<https://orcid.org/0000-0002-1097-7603>),\nYoo Ri Hwang [aut],\nCermet Ream [ctb]",
  "Maintainer": "S. Mason Garrison <garrissm@wfu.edu>",
  "MD5sum": "2ef2bb2a94169481d18733180d4ea9eb",
  "_user": "r-computing-lab",
  "_type": "src",
  "_file": "discord_1.3.tar.gz",
  "_fileid": "1c84f4781a9c36fff92ab41041b4ed1a4fa6bda2400949bcc9911e7ad95dc04f",
  "_filesize": 7545035,
  "_sha256": "1c84f4781a9c36fff92ab41041b4ed1a4fa6bda2400949bcc9911e7ad95dc04f",
  "_created": "2026-05-22T06:04:51.000Z",
  "_published": "2026-05-22T06:08:21.922Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77325508931,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7153872006"
    },
    {
      "job": 77325508950,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7153871014"
    },
    {
      "job": 77325508917,
      "time": 79,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7153853268"
    },
    {
      "job": 77325509020,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7153862670"
    },
    {
      "job": 77325081532,
      "time": 232,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7153835867"
    },
    {
      "job": 77325508845,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7153864979"
    },
    {
      "job": 77325508894,
      "time": 113,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7153860406"
    },
    {
      "job": 77325508930,
      "time": 125,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7153862837"
    },
    {
      "job": 77325509018,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7153857842"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/r-computing-lab/discord",
  "_commit": {
    "id": "86513d1953b9d4c760c132ab5fcb716629eece85",
    "author": "Copilot <198982749+Copilot@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Fix CodeFactor maintainability and style issues in func_discord_data.R (#57)\n\n* Initial plan\n\n* Fix maintainability and style issues in func_discord_data.R\n\nCo-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com>\n\n* Apply suggestion from @smasongarrison\n\nSigned-off-by: Mason Garrison <garrissm@wfu.edu>\n\n---------\n\nSigned-off-by: Mason Garrison <garrissm@wfu.edu>\nCo-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>\nCo-authored-by: smasongarrison <6001608+smasongarrison@users.noreply.github.com>\nCo-authored-by: Mason Garrison <garrissm@wfu.edu>",
    "time": 1771640714
  },
  "_maintainer": {
    "name": "S. Mason Garrison",
    "email": "garrissm@wfu.edu",
    "login": "smasongarrison",
    "orcid": "0000-0002-4804-6003",
    "twitter": "@SMasonGarrison",
    "description": "Assistant Professor of Quantitative Psychology",
    "uuid": 6001608
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.50",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "NlsyLinks",
      "role": "Suggests"
    },
    {
      "package": "ggpedigree",
      "role": "Suggests"
    },
    {
      "package": "BGmisc",
      "role": "Suggests"
    },
    {
      "package": "DT",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "ggExtra",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "janitor",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "magrittr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "sessioninfo",
      "role": "Suggests"
    },
    {
      "package": "stargazer",
      "role": "Suggests"
    },
    {
      "package": "snakecase",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "r-computing-lab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 1
    },
    {
      "week": "2025-23",
      "n": 1
    },
    {
      "week": "2025-24",
      "n": 3
    },
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 2
    },
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 4
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 4
    },
    {
      "week": "2025-50",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 8
    }
  ],
  "_tags": [
    {
      "name": "v1.2.4.1",
      "date": "2025-06-10"
    },
    {
      "name": "v1.3",
      "date": "2026-01-18"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "smasongarrison",
      "count": 385,
      "uuid": 6001608
    },
    {
      "user": "jdtrat",
      "count": 150,
      "uuid": 51417262
    },
    {
      "user": "yrhwang90",
      "count": 11,
      "uuid": 70814226
    },
    {
      "user": "copilot",
      "count": 7,
      "uuid": 198982749
    },
    {
      "user": "davisvaughan",
      "count": 1,
      "uuid": 19150088
    },
    {
      "user": "imgbotapp",
      "count": 1,
      "uuid": 31427850
    }
  ],
  "_userbio": {
    "uuid": 70174445,
    "type": "organization",
    "name": "R Computing Lab"
  },
  "_downloads": {
    "count": 388,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/discord"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/r-computing-lab/discord",
  "_pkgdown": "https://r-computing-lab.github.io/discord/",
  "_searchresults": 46,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/discord.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/r-computing-lab/discord",
  "_realowner": "r-computing-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2017-05-02"
    },
    {
      "version": "1.0.0",
      "date": "2020-11-10"
    },
    {
      "version": "1.1.0",
      "date": "2021-07-15"
    },
    {
      "version": "1.2.3",
      "date": "2025-04-06"
    },
    {
      "version": "1.2.4.1",
      "date": "2025-06-10"
    },
    {
      "version": "1.3",
      "date": "2026-01-18"
    }
  ],
  "_exports": [
    "discord_between_model",
    "discord_data",
    "discord_regression",
    "discord_within_model",
    "kinsim"
  ],
  "_datasets": [
    {
      "name": "data_flu_ses",
      "title": "Flu Vaccination and SES Data",
      "object": "data_flu_ses",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CASEID",
        "HHID",
        "SAMPLE",
        "RACE",
        "SEX",
        "FLU_M_2008",
        "FLU_F_2008",
        "FLU_M_2010",
        "FLU_F_2010",
        "FLU_M_2012",
        "FLU_F_2012",
        "FLU_M_2014",
        "FLU_F_2014",
        "FLU_M_2016",
        "FLU_F_2016",
        "FLU_total",
        "FLU_2008",
        "FLU_2010",
        "FLU_2012",
        "FLU_2014",
        "FLU_2016",
        "SubjectTag",
        "S00_H40"
      ],
      "rows": 12686,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_sample",
      "title": "Sample Data from NLSY",
      "object": "data_sample",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "subject_tag_s1",
        "subject_tag_s2",
        "extended_id",
        "r",
        "relationship_path",
        "height_s1",
        "weight_s1",
        "height_s2",
        "weight_s2"
      ],
      "rows": 1200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "check_discord_errors",
      "title": "Check Discord Errors",
      "topics": [
        "check_discord_errors"
      ]
    },
    {
      "page": "check_sibling_order",
      "title": "Check Sibling Order",
      "topics": [
        "check_sibling_order"
      ]
    },
    {
      "page": "data_flu_ses",
      "title": "Flu Vaccination and SES Data",
      "topics": [
        "data_flu_ses"
      ]
    },
    {
      "page": "data_sample",
      "title": "Sample Data from NLSY",
      "topics": [
        "data_sample"
      ]
    },
    {
      "page": "discord_between_model",
      "title": "Perform a Between-Family Linear Regression within the Discordant Kinship Framework",
      "topics": [
        "discord_between_model"
      ]
    },
    {
      "page": "discord_cond",
      "title": "Custom Conditions for the discord package",
      "topics": [
        "discord_cond"
      ]
    },
    {
      "page": "discord_data",
      "title": "Restructure Data to Determine Kinship Differences",
      "topics": [
        "discord_data"
      ]
    },
    {
      "page": "discord_regression",
      "title": "Perform a Linear Regression within the Discordant Kinship Framework",
      "topics": [
        "discord_regression",
        "discord_within_model"
      ]
    },
    {
      "page": "kinsim",
      "title": "Simulate Biometrically Informed Multivariate Data",
      "topics": [
        "kinsim"
      ]
    },
    {
      "page": "make_mean_diffs",
      "title": "Make Mean Differences",
      "topics": [
        "make_mean_diffs"
      ]
    }
  ],
  "_pkglogo": "https://github.com/r-computing-lab/discord/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/r-computing-lab/discord/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "categorical_predictors.Rmd",
      "filename": "categorical_predictors.html",
      "title": "Handling categorical predictors with discord",
      "author": "Yoo Ri Hwang and S. Mason Garrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2023-11-07 14:51:41",
      "modified": "2025-10-14 21:44:23",
      "commits": 13
    },
    {
      "source": "full_data_workflow.Rmd",
      "filename": "full_data_workflow.html",
      "title": "Full Data Workflow",
      "author": "S. Mason Garrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-10-05 00:28:00",
      "modified": "2026-01-18 22:26:26",
      "commits": 8
    },
    {
      "source": "regression.Rmd",
      "filename": "regression.html",
      "title": "NLSY: Regression demonstration with Flu Vaccination and SES data",
      "author": "Jonathan Trattner",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data Description",
        "Data Cleaning",
        "Prepare person-level data",
        "Create kinship-linked data",
        "Modeling and Interpretation",
        "Conclusion",
        "Acknowledgments",
        "Session Info",
        "References"
      ],
      "created": "2023-09-27 13:48:02",
      "modified": "2025-10-06 20:15:29",
      "commits": 14
    },
    {
      "source": "links.Rmd",
      "filename": "links.html",
      "title": "No Database? No Problem: Using discord with Simple Family Structures",
      "author": "Mason Garrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Loading Packages and Data",
        "Constructing Kinship Links",
        "Simulate Phenotypic Data",
        "Fitting a Discordant-Kinship Regression Model",
        "Alternative Specifications",
        "Conclusion",
        "References"
      ],
      "created": "2025-04-03 22:35:26",
      "modified": "2026-01-18 20:39:06",
      "commits": 16
    },
    {
      "source": "plots.Rmd",
      "filename": "plots.html",
      "title": "Visualizing Sibling Differences",
      "author": "S. Mason Garrison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2025-04-29 14:37:25",
      "modified": "2026-02-21 01:32:01",
      "commits": 11
    }
  ],
  "_score": 6.963787827345556,
  "_indexed": true,
  "_nocasepkg": "discord",
  "_universes": [
    "r-computing-lab",
    "smasongarrison"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-22T06:07:32.000Z",
      "distro": "noble",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "502225cbc0789e00ef155baeceee5f3100a3c0515b518a2a98730639f1097d56",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-05-22T06:07:31.000Z",
      "distro": "noble",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "4adb58f2eb7dfff5dcb9ed19cc74dc044055d7e44c98a85aebc254158add7be2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3",
      "date": "2026-05-22T06:06:16.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "f4c75e73fcd276e280b8d3d5baa538c709c575442fa0cb076eb6c2da4efce46e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3",
      "date": "2026-05-22T06:06:48.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "83dd699f635e43056c01b6b386ad4a558ed94e77fd62b83662ba8d3d02ad91bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3",
      "date": "2026-05-22T06:07:26.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "78a6d59cbc363a4cb2002e21bc183dafd4daeebce24669e4f2a00b78c99b4397",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3",
      "date": "2026-05-22T06:06:33.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "83f5571195160b2a66986fa30508d3d47500c3928bc96d5e76ee0805b1d68677",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3",
      "date": "2026-05-22T06:06:44.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "dfd935bda798d3078f2e9c25398cdfce1de7ef5821855f6aaf597423c7b89f20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3",
      "date": "2026-05-22T06:06:18.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "942f74fa47512e6a2cb1cf836c0adf019e2969fa276518bbbe418059e979f55e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26271267107"
    }
  ]
}