mendel {gRain}R Documentation

Mendelian segregation

Description

Generate conditional probability table for Mendelian segregation.

Usage

mendel(allele, names = c("child", "father", "mother"))

Arguments

allele

A character vector.

names

Names of columns in dataframe.

Note

No error checking at all on the input.

Examples

## Inheritance of the alleles "y" and "g"

men <- mendel(c("y","g"), names=c("ch", "fa", "mo"))
men


[Package gRain version 1.4.1 Index]