View source: R/kimura_neg_loglik.R
kimura_neg_loglik | R Documentation |
Calculate negative log-likelihood for a given set of heteroplasmy measurements
h and parameters theta = logit(p), logit(b) (we write h0 for p). We can do this by
enforcing a particular h0 value (passed as an argument) or treating h0 as a fit
parameter (default). The logit transform is used to ensure h0 and b remain in
the [0,1]
interval regardless of what real-valued argument the numerical optimiser
attempts.
kimura_neg_loglik(theta, h, h0 = F)
theta |
Kimura parameters p (or h0 here) and b. |
h |
A vector containig heteroplasmy measurements. Every observation should be in |
h0 |
Logical parameter. A particular h0 value Default is to treat h0 as a fit parameter |
The negative log likelihood for the input.
X.1 = rnorm(50,0.5,0.1)
kimura_neg_loglik(c(0.5,0.91),X.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.