An R Package for Extended Behavior Genetics Analysis


[Up] [Top]

Documentation for package ‘BGmisc’ version 1.0

Help Pages

BGmisc-package Behavior Genetic Miscellaneous functions in R
allGens allGens A function to calculate the number of individuals in each generation. This is a supporting function for 'simulatePedigree'.
BGmisc_package Behavior Genetic Miscellaneous functions in R
calculateRelatedness Calculate Relatedness Coefficient
comp2vech comp2vech Turn a variance component relatedness matrix into its half-vectorization
evenInsert evenInsert A function to insert m elements evenly into a length n vector.
famSizeCal famSizeCal A function to calculate the total number of individuals in a pedigree given parameters. This is a supporting function for function 'simulatePedigree'
fitComponentModel fitComponentModel Fit the estimated variance components of a model to covariance data
hazard Simulated pedigree with two extended families and an age-related hazard
identifyComponentModel identifyComponentModel Determine if a variance components model is identified
inbreeding Artificial pedigree data on seven families with inbreeding
inferRelatedness Infer Relatedness Coefficient
ped2add Take a pedigree and turn it into an additive genetics relatedness matrix
ped2ce Take a pedigree and turn it into an extended environmental relatedness matrix
ped2cn Take a pedigree and turn it into a common nuclear environmental relatedness matrix
ped2com Take a pedigree and turn it into a relatedness matrix
ped2fam Add an extended family ID variable to a pedigree
ped2graph Turn a pedigree into a graph
ped2mit Take a pedigree and turn it into a mitochondrial relatedness matrix
plotPedigree plotPedigree A wrapped function to plot simulated pedigree from function 'simulatePedigree'. This function require the installation of package 'kinship2'.
relatedness relatedness (Deprecated)
related_coef related_coef (Deprecated)
SimPed SimPed (Deprecated)
simulatePedigree Simulate Pedigrees
sizeAllGens sizeAllGens An internal supporting function for 'simulatePedigree'.
vech vech Create the half-vectorization of a matrix