{
  "_id": "6a1fcab2b401979e7343255d",
  "Package": "BGmisc",
  "Title": "An R Package for Extended Behavior Genetics Analysis",
  "Version": "1.8.0",
  "Authors@R": "c(\nperson(\"S. Mason\", \"Garrison\", , \"garrissm@wfu.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4804-6003\")),\nperson(c(\"Michael\", \"D.\"), \"Hunter\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-3651-6709\")),\nperson(\"Xuanyu\", \"Lyu\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-2841-5529\")),\nperson(c(\"Rachel\", \"N.\"), \"Good\", role = \"ctb\"),\nperson(c(\"Jonathan\", \"D.\"), \"Trattner\", , \"code@jdtrat.com\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-1097-7603\")),\nperson(c(\"S.\", \"Alexandra\"), \"Burt\", role = \"aut\",\ncomment = c(ORCID = \"0000-0001-5538-7431\"))\n)",
  "Description": "Provides functions for behavior genetics analysis,\nincluding variance component model identification [Hunter et\nal. (2021) <doi:10.1007/s10519-021-10055-x>], calculation of\nrelatedness coefficients using path-tracing methods [Wright\n(1922) <doi:10.1086/279872>; McArdle & McDonald (1984)\n<doi:10.1111/j.2044-8317.1984.tb00802.x>], inference of\nrelatedness, pedigree conversion, and simulation of\nmulti-generational family data [Lyu et al. (2025)\n<doi:10.1007/s10519-025-10225-1>]. For a full overview, see\n[Garrison et al. (2024) <doi:10.21105/joss.06203>]. For a big\ndata application see [Burt et al. (2025) <doi:\n10.1016/j.ebiom.2025.105911>].",
  "License": "GPL-3",
  "URL": "https://github.com/R-Computing-Lab/BGmisc/,\nhttps://r-computing-lab.github.io/BGmisc/",
  "BugReports": "https://github.com/R-Computing-Lab/BGmisc/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "8.0.0",
  "Config/pak/sysreqs": "libglpk-dev libicu-dev libxml2-dev",
  "Repository": "https://r-computing-lab.r-universe.dev",
  "Date/Publication": "2026-06-02 17:03:47 UTC",
  "RemoteUrl": "https://github.com/r-computing-lab/bgmisc",
  "RemoteRef": "HEAD",
  "RemoteSha": "bbef98b9049d7c3f8db39a061561522eb91c199b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-02 18:49:55 UTC",
    "User": "root"
  },
  "Author": "S. Mason Garrison [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-4804-6003>),\nMichael D. Hunter [aut] (ORCID:\n<https://orcid.org/0000-0002-3651-6709>),\nXuanyu Lyu [aut] (ORCID: <https://orcid.org/0000-0002-2841-5529>),\nRachel N. Good [ctb],\nJonathan D. Trattner [aut] (ORCID:\n<https://orcid.org/0000-0002-1097-7603>),\nS. Alexandra Burt [aut] (ORCID:\n<https://orcid.org/0000-0001-5538-7431>)",
  "Maintainer": "S. Mason Garrison <garrissm@wfu.edu>",
  "MD5sum": "19013598c1513aada1edd10b852d210c",
  "_user": "r-computing-lab",
  "_type": "src",
  "_file": "BGmisc_1.8.0.tar.gz",
  "_fileid": "ffc8d1c8b71b59d0758eb926b5aec7edd920c018308e273dbbd745a16f8e3f1b",
  "_filesize": 2674079,
  "_sha256": "ffc8d1c8b71b59d0758eb926b5aec7edd920c018308e273dbbd745a16f8e3f1b",
  "_created": "2026-06-02T18:49:55.000Z",
  "_published": "2026-06-03T06:33:22.529Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79235334712,
      "time": 335,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7367066999"
    },
    {
      "job": 79235334742,
      "time": 242,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367034000"
    },
    {
      "job": 79235335019,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7367047290"
    },
    {
      "job": 79235335087,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367029688"
    },
    {
      "job": 79235334485,
      "time": 294,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366942117"
    },
    {
      "job": 79235334425,
      "time": 157,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7377337458"
    },
    {
      "job": 79235335011,
      "time": 196,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7367017122"
    },
    {
      "job": 79235334515,
      "time": 186,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7377344284"
    },
    {
      "job": 79235334950,
      "time": 179,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367010338"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/r-computing-lab/bgmisc",
  "_commit": {
    "id": "bbef98b9049d7c3f8db39a061561522eb91c199b",
    "author": "Mason Garrison <garrissm@wfu.edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #152 from R-Computing-Lab/dev_main\n\nSlim down dataset and clean up related scripts",
    "time": 1780419827
  },
  "_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.5.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "corrplot",
      "role": "Suggests"
    },
    {
      "package": "discord",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "EasyMx",
      "role": "Suggests"
    },
    {
      "package": "ggpedigree",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "kinship2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "OpenMx",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "r-computing-lab",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-23",
      "n": 9
    },
    {
      "week": "2025-24",
      "n": 12
    },
    {
      "week": "2025-25",
      "n": 3
    },
    {
      "week": "2025-27",
      "n": 1
    },
    {
      "week": "2025-28",
      "n": 3
    },
    {
      "week": "2025-29",
      "n": 5
    },
    {
      "week": "2025-31",
      "n": 1
    },
    {
      "week": "2025-35",
      "n": 2
    },
    {
      "week": "2025-36",
      "n": 4
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 2
    },
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-01",
      "n": 2
    },
    {
      "week": "2026-02",
      "n": 5
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 26
    },
    {
      "week": "2026-08",
      "n": 7
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 9
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.4.3.1",
      "date": "2025-06-10"
    },
    {
      "name": "v1.5.0",
      "date": "2025-07-19"
    },
    {
      "name": "v1.5.2",
      "date": "2026-01-09"
    },
    {
      "name": "v1.6.0.1",
      "date": "2026-03-13"
    }
  ],
  "_topics": [
    "behavior-genetics"
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "smasongarrison",
      "count": 1232,
      "uuid": 6001608
    },
    {
      "user": "mhunter1",
      "count": 42,
      "uuid": 4991251
    },
    {
      "user": "copilot",
      "count": 19,
      "uuid": 198982749
    },
    {
      "user": "goodrn18",
      "count": 18,
      "uuid": 82233561
    },
    {
      "user": "xuanyu-lyu",
      "count": 13,
      "uuid": 89999350
    },
    {
      "user": "jdtrat",
      "count": 5,
      "uuid": 51417262
    },
    {
      "user": "osorensen",
      "count": 4,
      "uuid": 21175639
    },
    {
      "user": "imgbotapp",
      "count": 1,
      "uuid": 31427850
    },
    {
      "user": "wjakethompson",
      "count": 1,
      "uuid": 6980750
    },
    {
      "user": "thecarlossantosjr",
      "count": 1,
      "uuid": 44988343
    }
  ],
  "_userbio": {
    "uuid": 70174445,
    "type": "organization",
    "name": "R Computing Lab"
  },
  "_downloads": {
    "count": 935,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BGmisc"
  },
  "_devurl": "https://github.com/r-computing-lab/bgmisc",
  "_pkgdown": "https://r-computing-lab.github.io/BGmisc/",
  "_searchresults": 134,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BGmisc.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/r-computing-lab/bgmisc",
  "_realowner": "r-computing-lab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1",
      "date": "2020-12-04"
    },
    {
      "version": "1.0",
      "date": "2023-09-20"
    },
    {
      "version": "1.0.1",
      "date": "2023-09-26"
    },
    {
      "version": "1.2.0",
      "date": "2024-02-26"
    },
    {
      "version": "1.3.1",
      "date": "2024-06-16"
    },
    {
      "version": "1.3.2",
      "date": "2024-06-18"
    },
    {
      "version": "1.3.3",
      "date": "2025-02-19"
    },
    {
      "version": "1.3.5",
      "date": "2025-04-02"
    },
    {
      "version": "1.4.1",
      "date": "2025-05-30"
    },
    {
      "version": "1.4.3.1",
      "date": "2025-06-10"
    },
    {
      "version": "1.5.0",
      "date": "2025-07-19"
    },
    {
      "version": "1.5.2",
      "date": "2026-01-11"
    },
    {
      "version": "1.6.0.1",
      "date": "2026-03-13"
    }
  ],
  "_exports": [
    "addPersonToPed",
    "alignPhenToMatrix",
    "buildFamilyGroups",
    "buildOneFamilyGroup",
    "buildPedigreeModelCovariance",
    "buildPedigreeMx",
    "buildTreeGrid",
    "calcAllGens",
    "calcFamilySize",
    "calculateCIs",
    "calculateRelatedness",
    "checkIDs",
    "checkParentIDs",
    "checkPedigreeNetwork",
    "checkSex",
    "com2links",
    "comp2vech",
    "computeParentAdjacency",
    "createGenDataFrame",
    "determineSex",
    "dropLink",
    "findLeaves",
    "fitComponentModel",
    "fitPedigreeModel",
    "getGenDist",
    "getWikiTreeSummary",
    "identifyComponentModel",
    "inferRelatedness",
    "makeInbreeding",
    "makeTwins",
    "ped2add",
    "ped2addFocal",
    "ped2ce",
    "ped2cn",
    "ped2cnFocal",
    "ped2com",
    "ped2fam",
    "ped2focal",
    "ped2gen",
    "ped2genDist",
    "ped2genDistFocal",
    "ped2genFocal",
    "ped2graph",
    "ped2maternal",
    "ped2mit",
    "ped2mitFocal",
    "ped2paternal",
    "readGed",
    "readgedcom",
    "readGedcom",
    "readWikifamilytree",
    "recodeSex",
    "related_coef",
    "repairIDs",
    "repairSex",
    "SimPed",
    "simulatePedigree",
    "simulatePedigrees",
    "sliceFamilies",
    "summariseFamilies",
    "summariseMatrilines",
    "summarisePatrilines",
    "summarisePedigrees",
    "summarizeFamilies",
    "summarizeMatrilines",
    "summarizePatrilines",
    "summarizePedigrees",
    "traceTreePaths",
    "trimPedigree",
    "vech"
  ],
  "_datasets": [
    {
      "name": "hazard",
      "title": "Simulated pedigree with two extended families and an age-related hazard",
      "object": "hazard",
      "class": [
        "data.frame"
      ],
      "fields": [
        "famID",
        "ID",
        "sex",
        "dadID",
        "momID",
        "affected",
        "DA1",
        "DA2",
        "birthYr",
        "onsetYr",
        "deathYr",
        "available",
        "gen",
        "proband"
      ],
      "rows": 43,
      "table": true,
      "tojson": true
    },
    {
      "name": "inbreeding",
      "title": "Artificial pedigree data on eight families with inbreeding",
      "object": "inbreeding",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "sex",
        "dadID",
        "momID",
        "famID",
        "gen",
        "proband"
      ],
      "rows": 134,
      "table": true,
      "tojson": true
    },
    {
      "name": "potter",
      "title": "Fictional pedigree data on a wizarding family",
      "object": "potter",
      "class": [
        "data.frame"
      ],
      "fields": [
        "personID",
        "famID",
        "name",
        "first_name",
        "surname",
        "gen",
        "momID",
        "dadID",
        "spouseID",
        "sex",
        "twinID",
        "zygosity"
      ],
      "rows": 36,
      "table": true,
      "tojson": true
    },
    {
      "name": "royal92",
      "title": "Royal pedigree data from 1992",
      "object": "royal92",
      "class": [
        "data.frame"
      ],
      "fields": [
        "personID",
        "momID",
        "dadID",
        "famID",
        "twinID",
        "name",
        "sex",
        "birth_date",
        "death_date",
        "title"
      ],
      "rows": 3010,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dot-adjBeta",
      "title": "Construct Adjacency Matrix for Parent-Child Relationships Using Beta Methods This function constructs an adjacency matrix for parent-child relationships using a method in beta testing. It identifies parent-child pairs based on the specified component of relatedness.",
      "topics": [
        ".adjBeta"
      ]
    },
    {
      "page": "dot-adjDirect",
      "title": "Construct Adjacency Matrix for Parent-Child Relationships Using Direct Method",
      "topics": [
        ".adjDirect"
      ]
    },
    {
      "page": "dot-adjIndexed",
      "title": "Construct Adjacency Matrix for Parent-Child Relationships Using Indexed Method",
      "topics": [
        ".adjIndexed"
      ]
    },
    {
      "page": "dot-assignParentValue",
      "title": "Assign parent values based on component type",
      "topics": [
        ".assignParentValue"
      ]
    },
    {
      "page": "dot-computeTranspose",
      "title": "Compute the transpose multiplication for the relatedness matrix",
      "topics": [
        ".computeTranspose"
      ]
    },
    {
      "page": "dot-loadOrComputeIsChild",
      "title": "Load or compute the isChild matrix",
      "topics": [
        ".loadOrComputeIsChild"
      ]
    },
    {
      "page": "dot-postProcessGedcom.legacy",
      "title": "Post-process GEDCOM Data Frame",
      "topics": [
        ".postProcessGedcom.legacy"
      ]
    },
    {
      "page": "addParentRow",
      "title": "Create a properly formatted parent row for the pedigree",
      "topics": [
        "addParentRow"
      ]
    },
    {
      "page": "addPersonToPed",
      "title": "addPersonToPed",
      "topics": [
        "addPersonToPed"
      ]
    },
    {
      "page": "addRowlessParents",
      "title": "Add addRowlessParents",
      "topics": [
        "addRowlessParents"
      ]
    },
    {
      "page": "alignPhenToMatrix",
      "title": "Align Phenotype Vector to Matrix Format for OpenMx",
      "topics": [
        "alignPhenToMatrix"
      ]
    },
    {
      "page": "applyTagMappings",
      "title": "Apply Tag Mappings to a Line",
      "topics": [
        "applyTagMappings"
      ]
    },
    {
      "page": "buildBtwnGenerations",
      "title": "Process Generation Connections",
      "topics": [
        "buildBtwnGenerations"
      ]
    },
    {
      "page": "buildFamilyGroups",
      "title": "Build family group models",
      "topics": [
        "buildFamilyGroups"
      ]
    },
    {
      "page": "buildOneFamilyGroup",
      "title": "Build one family group model",
      "topics": [
        "buildOneFamilyGroup"
      ]
    },
    {
      "page": "buildPedigreeModelCovariance",
      "title": "Create an mxModel for a pedigree",
      "topics": [
        "buildPedigreeModelCovariance"
      ]
    },
    {
      "page": "buildPedigreeMx",
      "title": "Build Pedigree mxModel",
      "topics": [
        "buildPedigreeMx"
      ]
    },
    {
      "page": "buildWithinGenerations",
      "title": "Process Generations for Pedigree Simulation",
      "topics": [
        "buildWithinGenerations"
      ]
    },
    {
      "page": "calcAllGens",
      "title": "calcAllGens A function to calculate the number of individuals in each generation. This is a supporting function for 'simulatePedigree'.",
      "topics": [
        "allGens",
        "calcAllGens"
      ]
    },
    {
      "page": "calcFamilySize",
      "title": "calcFamilySize A function to calculate the total number of individuals in a pedigree given parameters. This is a supporting function for function 'simulatePedigree'",
      "topics": [
        "calcFamilySize",
        "famSizeCal"
      ]
    },
    {
      "page": "calcFamilySizeByGen",
      "title": "calcFamilySizeByGen An internal supporting function for 'simulatePedigree'.",
      "topics": [
        "calcFamilySizeByGen",
        "sizeAllGens"
      ]
    },
    {
      "page": "calculateCIs",
      "title": "Confidence Intervals for Correlations with Optional Design-Effect Adjustment",
      "topics": [
        "calculateCIs"
      ]
    },
    {
      "page": "calculateH",
      "title": "Falconer's Formula",
      "topics": [
        "calculateH"
      ]
    },
    {
      "page": "calculateRelatedness",
      "title": "Calculate Relatedness Coefficient",
      "topics": [
        "calculateRelatedness",
        "related_coef"
      ]
    },
    {
      "page": "checkIDs",
      "title": "Validates and Optionally Repairs Unique IDs in a Pedigree Dataframe",
      "topics": [
        "checkIDs"
      ]
    },
    {
      "page": "checkIDuniqueness",
      "title": "Check for duplicated individual IDs",
      "topics": [
        "checkIDuniqueness"
      ]
    },
    {
      "page": "checkParentIDs",
      "title": "Validates and Optionally Repairs Parent IDs in a Pedigree Dataframe",
      "topics": [
        "checkParentIDs"
      ]
    },
    {
      "page": "checkParentSex",
      "title": "Check Parental Role Sex Consistency",
      "topics": [
        "checkParentSex"
      ]
    },
    {
      "page": "checkPedigreeNetwork",
      "title": "Validate Pedigree Network Structure",
      "topics": [
        "checkPedigreeNetwork"
      ]
    },
    {
      "page": "checkSex",
      "title": "Validates and Optionally Repairs Sex Coding in a Pedigree Dataframe",
      "topics": [
        "checkSex"
      ]
    },
    {
      "page": "checkWithinRowDuplicates",
      "title": "Check for within-row duplicates (self-parents, same mom/dad)",
      "topics": [
        "checkWithinRowDuplicates"
      ]
    },
    {
      "page": "collapseNames",
      "title": "collapse Names",
      "topics": [
        "collapseNames"
      ]
    },
    {
      "page": "com2links",
      "title": "Convert Sparse Relationship Matrices to Kinship Links",
      "topics": [
        "com2links"
      ]
    },
    {
      "page": "comp2vech",
      "title": "comp2vech Turn a variance component relatedness matrix into its half-vectorization",
      "topics": [
        "comp2vech"
      ]
    },
    {
      "page": "computeParentAdjacency",
      "title": "Compute Parent Adjacency Matrix with Multiple Approaches",
      "topics": [
        "computeParentAdjacency"
      ]
    },
    {
      "page": "condenseMatrixSlots",
      "title": "Condense Matrix Slots in an OpenMx Model",
      "topics": [
        "condenseMatrixSlots"
      ]
    },
    {
      "page": "countPatternRows",
      "title": "Count GEDCOM Pattern Rows",
      "topics": [
        "countPatternRows"
      ]
    },
    {
      "page": "createGenDataFrame",
      "title": "Create Data Frame for Generation",
      "topics": [
        "createGenDataFrame",
        "createGenDataFrame_beta"
      ]
    },
    {
      "page": "determineSex",
      "title": "Determine Sex of Offspring",
      "topics": [
        "determineSex",
        "determineSex_beta"
      ]
    },
    {
      "page": "dropIdenticalDuplicateIDs",
      "title": "Drop Identical Duplicate IDs from Pedigree Data Frame",
      "topics": [
        "dropIdenticalDuplicateIDs"
      ]
    },
    {
      "page": "dropLink",
      "title": "dropLink",
      "topics": [
        "dropLink"
      ]
    },
    {
      "page": "findBiggest",
      "title": "Function to find the biggest families in a pedigree This function finds the biggest families in a pedigree. It is supposed to be used internally by the 'summarize_pedigree' function.",
      "topics": [
        "findBiggest",
        "findbiggest"
      ]
    },
    {
      "page": "findLeaves",
      "title": "Find Leaf Nodes in a Pedigree",
      "topics": [
        "findLeaves"
      ]
    },
    {
      "page": "findOldest",
      "title": "Function to find the oldest individuals in a pedigree This function finds the oldest families in a pedigree. It is supposed to be used internally by the 'summarize_pedigree' function.",
      "topics": [
        "findOldest",
        "findoldest"
      ]
    },
    {
      "page": "fitComponentModel",
      "title": "fitComponentModel Fit the estimated variance components of a model to covariance data",
      "topics": [
        "fitComponentModel"
      ]
    },
    {
      "page": "fitPedigreeModel",
      "title": "Fit an OpenMx pedigree model to observed data",
      "topics": [
        "fitPedigreeModel"
      ]
    },
    {
      "page": "fuseTwins",
      "title": "Fuse MZ twin pairs in a pedigree dataset for path tracing This function identifies MZ twin pairs in the pedigree dataset and merges their IDs for path tracing purposes. The second twin in each pair is made a founder (with NA parents), and all children of the second twin are redirected to the first twin. This allows for correct relatedness calculations without diagonal or downstream artifacts.",
      "topics": [
        "fuseTwins"
      ]
    },
    {
      "page": "getGenDist",
      "title": "Compute the generational distance between two individuals",
      "topics": [
        "getGenDist"
      ]
    },
    {
      "page": "hazard",
      "title": "Simulated pedigree with two extended families and an age-related hazard",
      "topics": [
        "hazard"
      ]
    },
    {
      "page": "identifyComponentModel",
      "title": "identifyComponentModel Determine if a variance components model is identified",
      "topics": [
        "identifyComponentModel"
      ]
    },
    {
      "page": "inbreeding",
      "title": "Artificial pedigree data on eight families with inbreeding",
      "topics": [
        "inbreeding"
      ]
    },
    {
      "page": "initializeRecord",
      "title": "Initialize an Empty Individual Record",
      "topics": [
        "initializeRecord"
      ]
    },
    {
      "page": "insertEven",
      "title": "evenInsert A function to insert m elements evenly into a length n vector.",
      "topics": [
        "evenInsert",
        "insertEven"
      ]
    },
    {
      "page": "makeInbreeding",
      "title": "makeInbreeding",
      "topics": [
        "makeInbreeding"
      ]
    },
    {
      "page": "makeTwins",
      "title": "makeTwins",
      "topics": [
        "makeTwins"
      ]
    },
    {
      "page": "mapFAMS2parents",
      "title": "Create a Mapping from Family IDs to Parent IDs",
      "topics": [
        "mapFAMS2parents"
      ]
    },
    {
      "page": "markPotentialChildren",
      "title": "Mark and Assign children",
      "topics": [
        "markPotentialChildren",
        "markPotentialChildren_beta"
      ]
    },
    {
      "page": "parseNameLine",
      "title": "Parse Name Line",
      "topics": [
        "parseNameLine"
      ]
    },
    {
      "page": "ped2add",
      "title": "Take a pedigree and turn it into an additive genetics relatedness matrix",
      "topics": [
        "ped2add"
      ]
    },
    {
      "page": "ped2addFocal",
      "title": "Add a focal-person additive relatedness column to a pedigree",
      "topics": [
        "ped2addFocal"
      ]
    },
    {
      "page": "ped2ce",
      "title": "Take a pedigree and turn it into an extended environmental relatedness matrix",
      "topics": [
        "ped2ce"
      ]
    },
    {
      "page": "ped2cn",
      "title": "Take a pedigree and turn it into a common nuclear environmental matrix",
      "topics": [
        "ped2cn"
      ]
    },
    {
      "page": "ped2cnFocal",
      "title": "Add a focal-person common nuclear relatedness column to a pedigree",
      "topics": [
        "ped2cnFocal"
      ]
    },
    {
      "page": "ped2com",
      "title": "Take a pedigree and turn it into a relatedness matrix",
      "topics": [
        "ped2com"
      ]
    },
    {
      "page": "ped2fam",
      "title": "Segment Pedigree into Extended Families",
      "topics": [
        "ped2fam"
      ]
    },
    {
      "page": "ped2focal",
      "title": "Compute relatedness between all individuals and a focal person",
      "topics": [
        "ped2focal"
      ]
    },
    {
      "page": "ped2gen",
      "title": "Take a pedigree and turn it into a generation relatedness matrix. It computes the rank of the generation matrix, which is the number of generations separating two individuals",
      "topics": [
        "ped2gen"
      ]
    },
    {
      "page": "ped2genDist",
      "title": "Compute a full pairwise generational distance matrix",
      "topics": [
        "ped2genDist"
      ]
    },
    {
      "page": "ped2genDistFocal",
      "title": "Compute generational distances from a focal individual to all others",
      "topics": [
        "ped2genDistFocal"
      ]
    },
    {
      "page": "ped2genFocal",
      "title": "Add a focal-person generation relatedness column to a pedigree. It computes the rank of the generation matrix, which is the number of generations separating two individuals",
      "topics": [
        "ped2genFocal"
      ]
    },
    {
      "page": "ped2graph",
      "title": "Turn a pedigree into a graph",
      "topics": [
        "ped2graph"
      ]
    },
    {
      "page": "ped2maternal",
      "title": "Add a maternal line ID variable to a pedigree",
      "topics": [
        "ped2maternal"
      ]
    },
    {
      "page": "ped2mit",
      "title": "Take a pedigree and turn it into a mitochondrial relatedness matrix",
      "topics": [
        "ped2mit",
        "ped2mt"
      ]
    },
    {
      "page": "ped2mitFocal",
      "title": "Add a focal-person mitochondrial relatedness column to a pedigree",
      "topics": [
        "ped2mitFocal",
        "ped2mtFocal"
      ]
    },
    {
      "page": "ped2paternal",
      "title": "Add a paternal line ID variable to a pedigree",
      "topics": [
        "ped2paternal"
      ]
    },
    {
      "page": "postProcessGedcom",
      "title": "Post-process GEDCOM Data Frame",
      "topics": [
        "postProcessGedcom"
      ]
    },
    {
      "page": "potter",
      "title": "Fictional pedigree data on a wizarding family",
      "topics": [
        "potter"
      ]
    },
    {
      "page": "prepSummarizePedigrees",
      "title": "Function to prepare the pedigree for summarization This function prepares the pedigree for summarization by ensuring that the necessary IDs are present and that the pedigree is built correctly.",
      "topics": [
        "prepSummarizePedigrees"
      ]
    },
    {
      "page": "processEventLine",
      "title": "Process Event Lines (Birth or Death)",
      "topics": [
        "processEventLine"
      ]
    },
    {
      "page": "processParents",
      "title": "Process Parents Information from GEDCOM Data",
      "topics": [
        "processParents"
      ]
    },
    {
      "page": "readGedcom",
      "title": "Read a GEDCOM File",
      "topics": [
        "readGed",
        "readGedcom",
        "readgedcom"
      ]
    },
    {
      "page": "readWikifamilytree",
      "title": "Read Wiki Family Tree",
      "topics": [
        "readWikifamilytree"
      ]
    },
    {
      "page": "recodeSex",
      "title": "Recodes Sex Variable in a Pedigree Dataframe",
      "topics": [
        "recodeSex"
      ]
    },
    {
      "page": "repairIDs",
      "title": "Repair Missing IDs",
      "topics": [
        "repairIDs"
      ]
    },
    {
      "page": "repairParentIDs",
      "title": "Repair Parent IDs",
      "topics": [
        "repairParentIDs"
      ]
    },
    {
      "page": "repairSex",
      "title": "Repairs Sex Coding in a Pedigree Dataframe",
      "topics": [
        "repairSex"
      ]
    },
    {
      "page": "restorePedColnames",
      "title": "Restore Original Column Names in a Pedigree Dataframe",
      "topics": [
        "restorePedColnames"
      ]
    },
    {
      "page": "royal92",
      "title": "Royal pedigree data from 1992",
      "topics": [
        "royal92"
      ]
    },
    {
      "page": "simulatePedigree",
      "title": "Simulate Pedigrees This function simulates \"balanced\" pedigrees based on a group of parameters: 1) k - Kids per couple; 2) G - Number of generations; 3) p - Proportion of males in offspring; 4) r - Mating rate.",
      "topics": [
        "SimPed",
        "simulatePedigree"
      ]
    },
    {
      "page": "simulatePedigrees",
      "title": "Simulate Multiple Pedigrees",
      "topics": [
        "simulatePedigrees"
      ]
    },
    {
      "page": "sliceFamilies",
      "title": "sliceFamilies",
      "topics": [
        "sliceFamilies"
      ]
    },
    {
      "page": "summarizeFamilies",
      "title": "Summarize the families in a pedigree",
      "topics": [
        "summariseFamilies",
        "summarisefamilies",
        "summarizeFamilies",
        "summarizefamilies"
      ]
    },
    {
      "page": "summarizeMatrilines",
      "title": "Summarize the maternal lines in a pedigree",
      "topics": [
        "summariseMatrilines",
        "summarisematrilines",
        "summarizeMatrilines",
        "summarizematrilines"
      ]
    },
    {
      "page": "summarizePatrilines",
      "title": "Summarize the paternal lines in a pedigree",
      "topics": [
        "summarisePatrilines",
        "summarisepatrilines",
        "summarizePatrilines",
        "summarizepatrilines"
      ]
    },
    {
      "page": "summarizePedigrees",
      "title": "Summarize Pedigree Data",
      "topics": [
        "summarisePedigrees",
        "summarisepedigrees",
        "summarizePedigrees",
        "summarizepedigrees"
      ]
    },
    {
      "page": "traceTreePaths",
      "title": "Trace paths between individuals in a family tree grid",
      "topics": [
        "traceTreePaths"
      ]
    },
    {
      "page": "trimPedigree",
      "title": "Iteratively Trim Leaf Nodes from a Pedigree",
      "topics": [
        "trimPedigree"
      ]
    },
    {
      "page": "validate_and_convert_matrix",
      "title": "validate_and_convert_matrix",
      "topics": [
        "validate_and_convert_matrix"
      ]
    },
    {
      "page": "vech",
      "title": "vech Create the half-vectorization of a matrix",
      "topics": [
        "vech"
      ]
    }
  ],
  "_readme": "https://github.com/r-computing-lab/bgmisc/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "glue",
    "igraph",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pkgconfig",
    "rlang",
    "stringi",
    "stringr",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "v5_ASOIAF.Rmd",
      "filename": "v5_ASOIAF.html",
      "title": "ASOIAF: How related are Jon and Danny?",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load Packages and Data",
        "Prepare and Validate Sex Codes",
        "Compute Relatedness Matrices",
        "Convert to Pairwise Format",
        "Locate Jon and Daenerys",
        "Plotting the Pedigree with Incomplete Parental Information",
        "Visualize the Pedigree",
        "Conclusion"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-02-19 01:22:37",
      "commits": 16
    },
    {
      "source": "v60_pedigree_model_fitting.Rmd",
      "filename": "v60_pedigree_model_fitting.html",
      "title": "Fitting Pedigree-Based Variance Component Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Prerequisites",
        "Data Requirements at a Glance",
        "Pedigree data frame",
        "Relatedness matrices",
        "Phenotype data format",
        "Missing phenotypes",
        "Part 1: Single-Family Model",
        "Step 1: Subset to one family and inspect",
        "Step 2: Compute relatedness matrices",
        "Step 3: Prepare the phenotype data",
        "Step 4: Subset matrices to observed individuals",
        "Step 5: Check model identification",
        "Step 6: Build and fit the model",
        "Part 2: Two-Family Multi-Group Model",
        "Family 2: matrices",
        "Family 2: phenotype data",
        "Family 2: subset matrices",
        "Check identification across both families",
        "Build and fit the two-family model",
        "Part 3: Scaling Up — Many Families and Parameter Recovery",
        "Simulate pedigrees and data",
        "Build and fit the multi-family model",
        "Compare estimates to true values",
        "Using the high-level wrapper",
        "Understanding the Covariance Structure",
        "Summary"
      ],
      "created": "2026-03-31 13:41:50",
      "modified": "2026-06-02 17:03:47",
      "commits": 2
    },
    {
      "source": "v1_modelingvariancecomponents.Rmd",
      "filename": "v1_modelingvariancecomponents.html",
      "title": "Modeling variance components",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Loading Required Libraries",
        "Working with Variance Component Models",
        "Using comp2vech Function",
        "Using identifyComponentModel Function",
        "Extended Pedigrees"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-04-01 02:22:42",
      "commits": 9
    },
    {
      "source": "v0_network.Rmd",
      "filename": "v0_network.html",
      "title": "Network tools for finding extended pedigrees and path tracing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Loading Required Libraries and Data",
        "Finding Extended Families",
        "Computing Relatedness",
        "Other relatedness measures",
        "Computing mitochondrial relatedness",
        "Computing relatedness through common nuclear environment",
        "Computing relatedness through common extended family environment",
        "Subsetting Pedigrees"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-02-19 01:22:37",
      "commits": 5
    },
    {
      "source": "v2_pedigree.Rmd",
      "filename": "v2_pedigree.html",
      "title": "Pedigree Simulation and Visualization with BGmisc",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Summarizing Pedigrees",
        "Plotting Pedigree",
        "Single Pedigree Visualization",
        "Visualizing Multiple Pedigrees Side-by-Side"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-05-27 03:02:07",
      "commits": 7
    },
    {
      "source": "v3_analyticrelatedness.Rmd",
      "filename": "v3_analyticrelatedness.html",
      "title": "Understanding and Computing Relatedness from Pedigree Data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Relatedness Coefficient",
        "Inferring r from Observed Phenotypic Correlation",
        "Computing Relatedness from Pedigree Data",
        "Hazard Data Example",
        "Introducing Missingness: Remove a Parent",
        "Removing the Father Instead",
        "Inbreeding Dataset: Family-Level Evaluation",
        "Example: Family r famIDs[1]",
        "Summary"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-04-01 02:39:32",
      "commits": 7
    },
    {
      "source": "v4_validation.Rmd",
      "filename": "v4_validation.html",
      "title": "Validating and Repairing Pedigree Data with BGmisc",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Identifying and Repairing ID Issues",
        "A Clean Dataset",
        "What checkIDs() Reports",
        "A Tale of Two Duplicates",
        "Repairing Between-Row Duplicates",
        "Oedipus ID",
        "Identifying and Repairing Sex Coding Issues",
        "Best Practices for Pedigree Validation"
      ],
      "created": "2025-05-29 16:27:42",
      "modified": "2026-01-08 17:57:48",
      "commits": 2
    }
  ],
  "_score": 8.977597870265772,
  "_indexed": true,
  "_nocasepkg": "bgmisc",
  "_universes": [
    "r-computing-lab",
    "smasongarrison"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.8.0",
      "date": "2026-06-02T18:54:43.000Z",
      "distro": "noble",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "9fa0958b2eb038ddf75dfe7ecdee591b9971382646fdb41cfd30cecf5ec1b4ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.8.0",
      "date": "2026-06-02T18:53:14.000Z",
      "distro": "noble",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "a2e5921746fbbc3311031415ca09359380e0dddccee8646f1c30fe7e4e5278a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.8.0",
      "date": "2026-06-02T18:54:03.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "f49db1dd365e44ad078ace2c9f9ac7e3de21f438231f35b4b324661b31786bee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.8.0",
      "date": "2026-06-02T18:53:17.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "a8f23a354ee5d5e739f7791a7600ccce2687073d73b50382bf776577ec416491",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.8.0",
      "date": "2026-06-03T06:32:35.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "96130d9394b64abd28f3e56df443b9b0ff5e842b290fe7d2724e43b447b9a476",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.8.0",
      "date": "2026-06-02T18:51:53.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "473dc1a13937d9828135c9d461e2d04a5960123751cf5f50ee376a383c0c43d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.8.0",
      "date": "2026-06-03T06:31:25.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "07e142cd633b94504709e1ba0fe7872e56575e171acf8623ee796398d314a79e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.8.0",
      "date": "2026-06-02T18:51:47.000Z",
      "commit": "bbef98b9049d7c3f8db39a061561522eb91c199b",
      "fileid": "f2b29a7ab218ac5a77805f1dda183e7affca9bc6417362bc122c4f9a180d89b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-computing-lab/actions/runs/26840758508"
    }
  ]
}