{
  "_id": "6a5f08a69baadeef8ab58e29",
  "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-07-21 05:46:44 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>",
  "_user": "r-computing-lab",
  "_type": "src",
  "_file": "discord_1.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/38c9d4e104c5aa2e6254302813ba2b68bb23d185c85184cc275969c7e8a4ac6b",
  "_filesize": 7549562,
  "_sha256": "38c9d4e104c5aa2e6254302813ba2b68bb23d185c85184cc275969c7e8a4ac6b",
  "_expires": "2026-10-29T05:50:28.000Z",
  "_created": "2026-07-21T05:46:44.000Z",
  "_published": "2026-07-21T05:50:30.765Z",
  "_jobs": [
    {
      "job": 88553598366,
      "time": 172,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8485188960"
    },
    {
      "job": 88553598355,
      "time": 167,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8485187435"
    },
    {
      "job": 88553598372,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8485175338"
    },
    {
      "job": 88553598345,
      "time": 175,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8485181938"
    },
    {
      "job": 88553017836,
      "time": 249,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8485138357"
    },
    {
      "job": 88553598352,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8485176990"
    },
    {
      "job": 88553598401,
      "time": 113,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8485171706"
    },
    {
      "job": 88553598380,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8485169991"
    },
    {
      "job": 88553598386,
      "time": 119,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8485173534"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213",
  "_status": "success",
  "_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": "Associate Professor of Quantitative Psychology",
    "uuid": 6001608
  },
  "_distro": "resolute",
  "_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-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.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",
    "followers": 8
  },
  "_downloads": {
    "count": 318,
    "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": 48,
  "_rbuild": "4.6.1",
  "_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.857332496431268,
  "_indexed": true,
  "_nocasepkg": "discord",
  "_universes": [
    "r-computing-lab",
    "smasongarrison"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3",
      "date": "2026-07-21T05:49:31.000Z",
      "distro": "resolute",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/5157e1eda339600683bd5fb2548dad561b45f915dd6ec70e94ca6f6ec9f41872",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3",
      "date": "2026-07-21T05:49:28.000Z",
      "distro": "resolute",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/0bf9301bd10c6c7e635de8025af1f313a8bf0a7108f459e2c85fbeeb863a126f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3",
      "date": "2026-07-21T05:48:57.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/66e612fc3c6748ac97dfc4f74ca6b332b932fc62e1a31aa2a9d6fa019227f588",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3",
      "date": "2026-07-21T05:49:13.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/981ad707108364f5b7f63de042a6cc5182fd2b4fbfc586054dea95ef763f3afa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3",
      "date": "2026-07-21T05:49:17.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/e580db0a8ae82189faed2d6ce48faceebdfa30eb3f5d168321eca14e0b46c651",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3",
      "date": "2026-07-21T05:48:22.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/593bd9caaa19f6e0d043a6b055da0555600d232da30114894f21ed40e7ac3061",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3",
      "date": "2026-07-21T05:48:21.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/911794482385c059654dde5533380918c53604465be6ccdd24ace87ad433c056",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3",
      "date": "2026-07-21T05:48:36.000Z",
      "commit": "86513d1953b9d4c760c132ab5fcb716629eece85",
      "fileid": "https://r2.ropensci.org/769954c10a7be112a9bd1a5a99d1407ae668c830595caa07038c66c9303ce8be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/29804760213"
    }
  ]
}