residuals.augSIMEX: Residuals of the Fits Made by augSIMEX

Description Usage Arguments Author(s) See Also Examples

Description

This function outputs the residuals from a fitted augSIMEX object.

Usage

1
2
3
4
5
## S3 method for class 'augSIMEX'

## S3 method for class 'augSIMEX'
residuals(object, type = c("deviance", "pearson", "working",
   "response", "partial"), ...) 

Arguments

object

the “augSIMEX" object gotten from augSIMEX function.

type

a character specifying what type of residuals to be returned. The option includes the deviance, Pearson, working, response and partial.

...

other arguments that are passed into the function.

Author(s)

Qihuang Zhang and Grace Y. Yi.

See Also

residuals,residuals.glm

Examples

1
2
3
4
5
6
7
8
9
data(ToyUni)
example <- augSIMEX(mainformula = Y ~ Xstar + Zstar + W, family = binomial(link = logit),
  mismodel = pi|qi ~ W, 
  meformula = Xstar ~ X + Z + W,
  data = ToyUni$Main,validationdata = ToyUni$Validation, subset = NULL,
  err.var = "Xstar", mis.var = "Zstar", err.true = "X", mis.true = "Z", 
  err.mat = NULL,
  lambda = NULL, M = 5, B = 2, nBoot = 2, extrapolation="quadratic")
residuals(example)

augSIMEX documentation built on April 23, 2020, 5:08 p.m.