R/gdina_probs_invlink.R

Defines functions gdina_probs_invlink

## File Name: gdina_probs_invlink.R
## File Version: 0.03

gdina_probs_invlink <- function(probs, linkfct)
{
    if ( linkfct=="logit"){
        probs <- stats::plogis(probs)
    }
    if ( linkfct=="log"){
        probs <- exp(probs)
    }
    return(probs)
}

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.