powered by
Given a matrix of prior probabilities for the genotypes at each SNP, this function will calculate the prior variance of genotypes.
pvcalc(priormat)
A vector of prior variances.
A matrix of prior genotype probabilities. Element priormat[i, j] is the prior probability of dosage j at SNP i.
priormat[i, j]
j
i
David Gerard
data("uit") priormat <- uit$snpdf[, paste0("Pr_", 0:4)] pvcalc(priormat)
Run the code above in your browser using DataLab