R/calculateRatio.R

Defines functions calculateRatio

Documented in calculateRatio

calculateRatio <- function(temp, lik, EMiteration, Conv, L2iterationReset)
{
    if ((temp < lik) & (EMiteration > 3) & ( ! L2iterationReset))
    { # Likelihood decreased indicating precision has been reached (not due to having been reset in this iteration)
        invisible(Conv)
        
    }else
    {
        invisible(abs((temp - lik) / lik) )
    }
}

Try the ClusterVAR package in your browser

Any scripts or data that you put into this service are public.

ClusterVAR documentation built on April 4, 2025, 2:20 a.m.