R/gdina_maximum_parameter_change.R

Defines functions gdina_maximum_parameter_change

## File Name: gdina_maximum_parameter_change.R
## File Version: 0.01

gdina_maximum_parameter_change <- function( delta, delta.new, linkfct )
{
    max.par.change <- max( abs( unlist( delta.new ) - unlist( delta ) ) )
    if ( linkfct %in% c("logit","log") ){
        max.par.change <- max( abs( stats::plogis(unlist( delta.new )) - stats::plogis( unlist( delta ) )) )
    }
    return(max.par.change)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.