residuals.RRglm: Accessing GLMMRR Fits for fixed-effect models

Description Usage Arguments Value See Also

View source: R/residuals.R

Description

Compute residuals for RRglm objects. Extends residuals.glm with residuals for grouped binary Randomized Response data. Reference: Fox, J-P, Klotzke, K. and Veen, D. (2016). Generalized Linear Mixed Models for Randomized Responses. Manuscript submitted for publication.

Usage

1
2
3
4
## S3 method for class 'RRglm'
residuals(object, type = c("deviance", "pearson", "working",
  "response", "partial", "deviance.grouped", "pearson.grouped",
  "hosmer-lemeshow"), ngroups = 10, ...)

Arguments

object

an object of class RRglm.

type

the type of residuals which should be returned. The alternatives are: "deviance" (default), "pearson", "working", "response", "partial", "deviance.grouped", "pearson.grouped" and "hosmer-lemeshow".

ngroups

the number of groups if Hosmer-Lemeshow residuals are computed (default: 10).

...

further arguments passed to or from other methods.

Value

A vector of residuals.

See Also

residuals.glm


GLMMRR documentation built on May 30, 2017, 3:31 a.m.