em_converged: Convergence test for EM-algorithm.

Description Usage Arguments Value

Description

Convergence test for EM-algorithm.

Usage

1
2
em_converged(loglik, previous_loglik, threshold = 1e-04,
  check_increased = TRUE)

Arguments

loglik

Current value of the log-likelihood function

previous_loglik

Value of the log-likelihood function at the previous

threshold

If difference is less than threshold, then algorithm has converged

check_increased

TO DOCUMENT

Value

A logical statement indicating whether EM algorithm has converged according to slope convergence test


guilbran/dynfactoR documentation built on May 8, 2019, 1:35 a.m.