Learn R Programming

EpiTest (version 1.0.0)

VarList.comp: Compute covariance matrices

Description

This function computes the covariance matrices associated with the variance components of the EpiTest model: the segregation variance, the (segregation x segregation) variance and the error variance

Usage

VarList.comp(Ancestry)

Value

A list of three covariance matrices

Arguments

Ancestry

a matrix with 0/1 entries representing the allele ancestries of a bi-parental population at a set of markers (0: homozygous for parent A alleles and 1: homozygous for parent B alleles)

Examples

Run this code
## One bi-parental population, no weighting
data(Ancestry.list)
Ancestry <- Ancestry.list[[1]]
VarList <- VarList.comp(Ancestry = Ancestry)
purrr::map(VarList,~.x[1:5,1:5])

Run the code above in your browser using DataLab