View source: R/model-criticism.R
| log_likelihood | R Documentation |
Calculate log-likelihood for transition data
log_likelihood(params, data)
params |
numeric vector of length 4 (nodk) or 8 (dk) |
data |
numeric vector of transition counts |
scalar log-likelihood
params <- c(0.4, 0.3, 0.3, 0.25)
data <- c(x00 = 10, x01 = 5, x10 = 3, x11 = 12)
log_likelihood(params, data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.