
Check EM Monotonicity
check_em_monotonicity.RdVerify that the EM algorithm exhibits (near) monotonic log-likelihood improvement.
Examples
if (FALSE) { # \dontrun{
monotonicity_check <- check_em_monotonicity(diag)
if (!monotonicity_check$passed) {
cat("Violations at iterations:", monotonicity_check$violation_iters, "\n")
}
} # }