.freqpcr_loglike | R Documentation |
The internal function is called from the optimizer, nlm()
, running in freqpcr()
. It defines the log-likelihood by obtaining the two ΔCq values (differences in the four Cq measurements) provided that the allele mixing ratio for each bulk sample is given together with other parameters. This function is vectorized over multiple bulk samples.
.freqpcr_loglike( X, N, DCW, DCD, zeroAmount, para.fixed = NULL, beta = TRUE, diploid = FALSE, dummyDCW = FALSE )
X |
Numeric vector that stores the parameter values to be optimized via |
N |
Sample sizes as a numeric vector. |
DCW, DCD |
Numeric vectors having the same length as |
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 |
diploid |
Is the target organism diploidy? 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.