| startvalue {hsrecombi} | R Documentation |
Start value for maternal allele and haplotype frequencies
Description
Determine default start values for Expectation Maximisation (EM) algorithm that is used to estimate paternal recombination rate and maternal haplotype frequencies
Usage
startvalue(Fam1, Fam2, Dd = 0, prec = 1e-06)
Arguments
Fam1 |
matrix (DIM n.progeny x 2) of progeny genotypes (0, 1, 2) of genomic family with coupling phase sires (1) at SNP pair |
Fam2 |
matrix (DIM n.progeny x 2) of progeny genotypes (0, 1, 2) of genomic family with repulsion phase sires (2) at SNP pair |
Dd |
maternal LD, default 0 |
prec |
minimum accepted start value for fAA, fAB, fBA; default
|
Value
list (LEN 8)
fAA.startfrequency of maternal haplotype 1-1
fAB.startfrequency of maternal haplotype 1-0
fBA.startfrequency of maternal haplotype 0-1
p1estimate of maternal allele frequency (allele 1) when sire is heterozygous at
SNP1p2estimate of maternal allele frequency (allele 1) when sire is heterozygous at
SNP2L1lower bound of maternal LD
L2upper bound for maternal LD
critical0 if parameter estimates are unique; 1 if parameter estimates at both solutions are valid
Examples
n1 <- 100
n2 <- 20
G1 <- matrix(ncol = 2, nrow = n1, sample(c(0:2), replace = TRUE,
size = 2 * n1))
G2 <- matrix(ncol = 2, nrow = n2, sample(c(0:2), replace = TRUE,
size = 2 * n2))
startvalue(G1, G2)