em_converged: Convergence test for EM-algorithm.

Description Usage Arguments Value

View source: R/em_algorithm.R

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 Nov. 25, 2017, 12:35 a.m.