Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals.JointAI

Extract residuals from an object of class JointAI


Description

Extract residuals from an object of class JointAI

Usage

## S3 method for class 'JointAI'
residuals(object, type = c("working", "pearson", "response"), warn = TRUE, ...)

Arguments

object

object inheriting from class 'JointAI'

type

type of residuals: "deviance", "response", "working"

warn

logical; should warnings be given? Default is TRUE.

...

currently not used

Note

  • For mixed models residuals are currently calculated using the fixed effects only.

  • For ordinal (mixed) models and parametric survival models only type = "response" is available.

  • For Cox proportional hazards models residuals are not yet implemented.

Examples

mod <- glm_imp(B1 ~ C1 + C2 + O1, data = wideDF, n.iter = 100,
               family = binomial(), mess = FALSE)
summary(residuals(mod, type = 'response')[[1]])
summary(residuals(mod, type = 'working')[[1]])

JointAI

Joint Analysis and Imputation of Incomplete Data

v1.0.2
GPL (>= 2)
Authors
Nicole S. Erler [aut, cre] (<https://orcid.org/0000-0002-9370-6832>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.