RRglmGOF {GLMMRR}R Documentation

Goodness-of-fit statistics for binary Randomized Response data

Description

Compute goodness-of-fit statistics for binary Randomized Response data. Pearson, Deviance and Hosmer-Lemeshow statistics are available.

Usage

RRglmGOF(
  RRglmOutput,
  doPearson = TRUE,
  doDeviance = TRUE,
  doHlemeshow = TRUE,
  hlemeshowGroups = 10,
  rm.na = TRUE
)

Arguments

RRglmOutput

a model fitted with the RRglm function.

doPearson

compute Pearson statistic.

doDeviance

compute Deviance statistic.

doHlemeshow

compute Hosmer-Lemeshow statistic.

hlemeshowGroups

number of groups to split the data into for the Hosmer-Lemeshow statistic (default: 10).

rm.na

remove cases with missing data.

Value

an option of class RRglmGOF.

Examples

out <- RRglm(response ~ Gender + RR + pp + age, link="RRlink.logit", RRmodel=RRmodel,
         p1=RRp1, p2=RRp2, data=Plagiarism, etastart=rep(0.01, nrow(Plagiarism)))
RRglmGOF(RRglmOutput = out, doPearson = TRUE, doDeviance = TRUE, doHlemeshow = TRUE)

[Package GLMMRR version 0.5.0 Index]