loglik {drimmR} | R Documentation |
Log-likelihood of the drifting Markov Model
Description
Generic function computing the log-likelihood of the model x
,
with the list of sequences sequences
.
Usage
loglik(x, sequences, ncpu = 2)
Arguments
x |
An object for which the log-likelihood of the DMM can be computed. |
sequences |
A vector of character or list of vectors representing the sequences for which the |
ncpu |
Default=2. Represents the number of cores used to parallelized computation. If ncpu=-1, then it uses all available cores. log-likelihood of the model must be computed. |
Value
A list of loglikelihood (numeric)
Author(s)
Annthomy Gilles, Alexandre Seiller
References
Barbu VS, Vergne N (2018). “Reliability and survival analysis for drifting Markov models: modelling and estimation.” Methodology and Computing in Applied Probability, 1–33. doi: 10.1007/s11009-018-9682-8, https://doi.org/10.1007/s11009-018-9682-8. Vergne N (2008). “Drifting Markov models with polynomial drift and applications to DNA sequences.” Statistical Applications in Genetics Molecular Biology , 7(1) . doi: 10.2202/1544-6115.1326, https://doi.org/10.2202/1544-6115.1326.