obsImpResiPlot: Plot residuals vs fitted for imputed and observed models

View source: R/obsImpResiPlot.R

obsImpResiPlotR Documentation

Plot residuals vs fitted for imputed and observed models

Description

Provides a plot with residuals and fitted values from all multiply imputed models (grey points) and from the observed data model (black points).

Based on method proposed by: Rizopoulos, D., Verbeke, G., & Molenberghs, G. (2010). Multiple-Imputation- Based Residuals and Diagnostic Plots for Joint Models of Longitudinal and Survival Outcomes. Biometrics, 66(1), 20-29. https://doi.org/10.1111/j.1541-0420.2009.01273.x

Usage

obsImpResiPlot(mira, nls)

Arguments

mira

An object of class 'mira' generated by the 'with.mids' function in ' mice'

nls

A fitted model object created with observed data only (e.g., an nls model object created with observed dataset that has missing values).

Value

A plot of residual vs. fited values


earlycapistran/consLettersUtils documentation built on Nov. 22, 2022, 1:22 a.m.