powered by
Calculate log-likelihood for transition data
log_likelihood(params, data)
scalar log-likelihood
numeric vector of length 4 (nodk) or 8 (dk)
numeric vector of transition counts
params <- c(0.4, 0.3, 0.3, 0.25) data <- c(x00 = 10, x01 = 5, x10 = 3, x11 = 12) log_likelihood(params, data)
Run the code above in your browser using DataLab