.freqpcr_loglike_cont | R Documentation |
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.
.freqpcr_loglike_cont( X, A, DCW, DCD, zeroAmount, para.fixed = NULL, beta = TRUE, dummyDCW = FALSE )
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 ΔCq: |
zeroAmount |
(In RED-ΔΔCq method) residue rate of restriction enzyme digestion, or (in general ΔΔCq analyses) small portion of the off-target allele on the target locus of the test sample, which will be amplified in the PCR. It needs to be always specified by the user as a number between 0 and 1, usually near 0. |
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 ΔCq values of the control samples are dummy or not. |
Scalar of the log likelihood.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.