plot.RRglmerMod: Plot diagnostics for a RRglmerMod object

Description Usage Arguments Examples

View source: R/plot.R

Description

Five plots (selectable by which) are currently available: (1) a plot of estimated population prevalence per RR model, (2) a plot of estimated population prevalence per protection level, (3) a plot of random effects and their conditional variance (95 (4) a plot of conditional pearson residuals against fitted randomized response probability, and (5) a plot of unconditional pearson residuals against fitted randomized response probability. By default, plots 1, 3, 4 and 5 are provided.

Usage

1
2
## S3 method for class 'RRglmerMod'
plot(x, which = c(1, 3, 4, 5), ...)

Arguments

x

an object of class RRglmerMod.

which

if a subset of the plots is required, specify a subset of the numbers 1:5 (default: 1, 3, 4, 5).

...

further arguments passed to or from other methods.

Examples

1
2
3
4
5
out <- RRglmer(response ~ Gender + RR + pp + (1+pp|age), link="RRlink.logit", RRmodel=RRmodel,
         p1=RRp1, p2=RRp2, data=Plagiarism, na.action = "na.omit",
         etastart = rep(0.01, nrow(Plagiarism)),
         control = glmerControl(optimizer = "Nelder_Mead", tolPwrss = 1e-03), nAGQ = 1)
plot(out, which = 1:5)

GLMMRR documentation built on Jan. 16, 2021, 5:28 p.m.