p_converged: Check if p value has converged

View source: R/EMbasic.R

p_convergedR Documentation

Check if p value has converged

Description

Check if p value has converged

Usage

p_converged(p_diff, p_diff_prev, error)

Arguments

p_diff

The difference in likelihood betwween this round of optimisation and the previous round.

p_diff_prev

The difference in likelihood between the previous round of optimisation and the one before that.

error

The maximum tolerated error

Value

A TRUE or FALSE value indicating if the difference between successive rounds of optimisation is below the error threshold (i.e. converged)


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.