create_ckmr.RdStarting from a data frame of marker information like that
in microhaps or long_markers. This
function takes care of all the calculations necessary to simulate
log-likelihood ratios of genotypes given different pairwise relationships.
a data frame in the format of long_markers. Monomorphic loci should have
been removed and the whole thing run through reindex_markers before passing it
to this function.
A matrix like that in the supplied data kappas. It should have
three columns, and rownames giving the abbreviated name of the pairwise relationship. Each row
is a three-vector which are the Cotterman coefficients for the relationship. The first element is the
probability that the pair shares 0 gene copies IBD, the second is the prob that they share 1 gene
copy IBD, and the third is the prob that they share 2 gene copies IBD, all assuming no inbreeding.
By default, this just uses the "MZ", "PO", "FS", "HS", and "U" rows from kappas.
The genotyping error model assumed for the analysis.
The actual, "true" genotyping error model for the simulation.
a named list of extra arguments (besides L) to be passed to the ge_mod_assumed function. Set it to NULL to use the default values for the genotyping error model.
a named list of extra arguments (besides L) to be passed to the ge_mod_true function. Set to NULL to use defaults.