deviances: A function to extract deviances for all dimension, including...

Description Usage Arguments Value

View source: R/F_deviances.R

Description

A function to extract deviances for all dimension, including after filtering on confounders

Usage

1
deviances(rcm, squaredSum = FALSE)

Arguments

rcm

an object of the RCM class

squaredSum

a boolean, should total deviance be returned?

Total deviances can be deceptive and not correspond to the differences in log-likelihood. As the dispersion is different for each model. To compare models it is better to compare likelihoods.

Value

If Sum is FALSE, a named array of deviance residuals of the independence model and all models with dimension 1 to k, including after filtering on confounders. Otherwise a table with total deviances (the sum of squared deviance residuals), deviance explained and cumulative deviance explained.


RCM documentation built on Nov. 8, 2020, 5:22 p.m.

Related to deviances in RCM...