"rma.uni"
, "rma.mh"
, and "rma.peto"
.## S3 method for class 'rma.uni':
qqnorm(y, type="rstandard", pch=19, envelope=TRUE, level=y$level,
bonferroni=FALSE, reps=1000, smooth=TRUE, bass=0, label=FALSE, offset=0.3, \dots)
## S3 method for class 'rma.mh':
qqnorm(y, type="rstandard", pch=19, label=FALSE, offset=0.3, \dots)
## S3 method for class 'rma.peto':
qqnorm(y, type="rstandard", pch=19, label=FALSE, offset=0.3, \dots)
## S3 method for class 'rma.glmm':
qqnorm(y, \dots)
"rma.uni"
, "rma.mh"
, or "rma.peto"
. The method is not yet implemented for objects of class "rma.glmm"
."rstandard"
(default) or "rstudent"
indicating whether standardized residuals or studentized deleted residuals should be used in creating the plot. See points
for other options.TRUE
)). Only for objects of class "rma.uni"
. See TRUE
).FALSE
). See type="rstandard"
, the default) or the externally standardized residuals (type="rstudent"
) on the vertical axis (see residuals.rma
for details on the definition of these residual types).
For reference, a line is added to the plot with slope of 1, going through the (0,0) point.
For objects of class "rma.uni"
, it is also possible to add a pseudo confidence envelope to the plot. The envelope is created based on the quantiles of sets of pseudo residuals simulated from the given model (for details, see Cook & Weisberg, 1982). The number of sets simulated can be controlled with the reps
argument. When smooth=TRUE
, the simulated bounds are smoothed with Friedman's SuperSmoother (see supsmu
). The bass
argument can be set to a number between 0 and 10, with higher numbers indicating increasing smoothness. If bonferroni=TRUE
, the envelope bounds are Bonferroni corrected, so that the envelope can be regarded as a confidence region for all $k$ residuals simultaneously. The default however is bonferroni=FALSE
, which makes the plot more sensitive to deviations from normality.
With the label
argument, one can control whether points in the plot will be labeled (e.g., to identify outliers). If label="all"
, all points in the plot will be labeled. If label="out"
, points falling outside of the confidence envelope will be labeled (only available for objects of class "rma.uni"
). Finally, one can also set this argument to a numeric value (between 1 and $k$), indicating how many of the most extreme points should be labeled (for example, with label=1
only the most extreme point would be labeled, while with label=3
, the most extreme, and the second and third most extreme points would be labeled). With the offset
argument, the distance between the labels and the corresponding points can be controlled.rma.uni
, rma.mh
, rma.peto
, rma.glmm
### load BCG vaccine data
data(dat.bcg)
### meta-analysis of the log relative risks using a random-effects model
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg,
data=dat.bcg, measure="RR", method="REML")
qqnorm(res)
### mixed-effects model with absolute latitude as a moderator
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, mods = ~ ablat,
measure="RR", data=dat.bcg, method="REML")
qqnorm(res)
Run the code above in your browser using DataLab