R/mdmb_compute_df.R

Defines functions mdmb_compute_df

## File Name: mdmb_compute_df.R
## File Version: 0.11

mdmb_compute_df <- function(x, df=Inf, est_df=FALSE, maxval=6)
{
    if (est_df){
        logdf <- x['logdf']
        if (logdf<maxval){
            df <- exp(logdf)
        } else {
            df <- Inf
        }
    }
    return(df)
}

Try the mdmb package in your browser

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

mdmb documentation built on March 7, 2023, 6:58 p.m.