.freqpcr_loglike_cont {freqpcr} | R Documentation |
Log-likelihood when sample allele ratio is continuous.
Description
Called from freqpcr()
instead of .freqpcr_loglike()
when the model is ‘continuous’. This function assumes that each sample does not consist of n
individual organisms with certain genotypes, but the result of a direct DNA extraction from the sub-population having the allele ratio around p:(1-p)
. Each sample allele ratio is considered to follow Beta(apk, a(1-p)k)
, where a
and k
are the relative DNA content of the sample and the gamma shape parameter, respectively.
Usage
.freqpcr_loglike_cont(
X,
A,
DCW,
DCD,
zeroAmount,
para.fixed = NULL,
beta = TRUE,
dummyDCW = FALSE
)
Arguments
X |
Numeric vector that stores the parameter values to be optimized via |
A |
Relative DNA content between the samples. A continuous version of |
DCW , DCD |
Numeric vectors. They store the measured values of the two |
zeroAmount |
(In RED- |
para.fixed |
Named numeric vector that stores the fixed parameters inherited from |
beta |
Whether to use the beta distribution to approximate the sample allele ratio instead of specifying individual gamma distribution for each of the allelic DNA amounts? Default is |
dummyDCW |
Whether the |
Value
Scalar of the log likelihood.