An R Package for Extended Behavior Genetics Analysis
BGmisc: An R Package for Extended Behavior Genetics Analysis
Process Generation Connections
Read a GEDCOM File
allGens A function to calculate the number of individuals in each gene...
Assign Couple IDs
Assign momID and dadID based on family mapping
Generate or Adjust Number of Kids per Couple Based on Mating Rate
Process Generations for Pedigree Simulation
Falconer's Formula
Calculate Relatedness Coefficient
This function calculates summary statistics for all numeric variables ...
Validates and Optionally Repairs Unique IDs in a Pedigree Dataframe
identifyComponentModel Determine if a variance components model is ide...
Validates and Optionally Repairs Sex Coding in a Pedigree Dataframe
Combine Columns
comp2vech Turn a variance component relatedness matrix into its half-v...
Check for Pattern Rows
Create a mapping of family IDs to parent IDs
Create Data Frame for Generation
Determine Sex of Offspring
dropLink A function to drop a person from his/her parents in the simul...
Error Function
evenInsert A function to insert m elements evenly into a length n vect...
Extract Information from Line
famSizeCal A function to calculate the total number of individuals in ...
This function finds the originating member for each line in a pedigree...
fitComponentModel Fit the estimated variance components of a model to ...
Infer Relatedness Coefficient
makeInbreeding A function to create inbred mates in the simulated pedi...
makeTwins A function to impute twins in the simulated pedigree `data.f...
Mark and Assign children
Compute the null space of a matrix
nullToNA
Take a pedigree and turn it into an additive genetics relatedness matr...
Take a pedigree and turn it into an extended environmental relatedness...
Take a pedigree and turn it into a common nuclear environmental relate...
Take a pedigree and turn it into a relatedness matrix
Segment Pedigree into Extended Families
Turn a pedigree into a graph
Add a maternal line ID variable to a pedigree
Take a pedigree and turn it into a mitochondrial relatedness matrix
Add a paternal line ID variable to a pedigree
plotPedigree A wrapped function to plot simulated pedigree from functi...
Process parents information
Recodes Sex Variable in a Pedigree Dataframe
related_coef (Deprecated)
relatedness (Deprecated)
Repair Missing IDs
Repairs Sex Coding in a Pedigree Dataframe
Resample Elements of a Vector
rmvn
SimPed (Deprecated)
Simulate Pedigrees This function simulates "balanced" pedigrees based ...
sizeAllGens An internal supporting function for simulatePedigree
.
Standardize Column Names in a Dataframe (Internal)
Summarize the families in a pedigree
Summarize the maternal lines in a pedigree
Summarize the paternal lines in a pedigree
Summarize Pedigree Data
modified tryCatch function
vech Create the half-vectorization of a matrix
The BGmisc R package offers a comprehensive suite of functions tailored for extended behavior genetics analysis, including model identification, calculating relatedness, pedigree conversion, pedigree simulation, and more.
Useful links