| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/metafor.R |
| 3 |
\name{glance.rma} |
| 4 |
\alias{glance.rma} |
| 5 |
\title{Glance at a(n) rma object} |
| 6 |
\usage{ |
| 7 |
\method{glance}{rma}(x, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{An \code{rma} object such as those created by \code{\link[metafor:rma.uni]{metafor::rma()}}, |
| 11 |
\code{\link[metafor:rma.uni]{metafor::rma.uni()}}, \code{\link[metafor:rma.glmm]{metafor::rma.glmm()}}, \code{\link[metafor:rma.mh]{metafor::rma.mh()}}, |
| 12 |
\code{\link[metafor:rma.mv]{metafor::rma.mv()}}, or \code{\link[metafor:rma.peto]{metafor::rma.peto()}}.} |
| 13 |
|
| 14 |
\item{...}{Additional arguments. Not used. Needed to match generic |
| 15 |
signature only. \strong{Cautionary note:} Misspelled arguments will be |
| 16 |
absorbed in \code{...}, where they will be ignored. If the misspelled |
| 17 |
argument has a default value, the default value will be used. |
| 18 |
For example, if you pass \code{conf.lvel = 0.9}, all computation will |
| 19 |
proceed using \code{conf.level = 0.95}. Two exceptions here are: |
| 20 |
\itemize{ |
| 21 |
\item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if |
| 22 |
it will be ignored. |
| 23 |
\item \code{augment()} methods will warn when supplied a \code{newdata} argument if it |
| 24 |
will be ignored. |
| 25 |
}} |
| 26 |
} |
| 27 |
\description{ |
| 28 |
Glance accepts a model object and returns a \code{\link[tibble:tibble]{tibble::tibble()}} |
| 29 |
with exactly one row of model summaries. The summaries are typically |
| 30 |
goodness of fit measures, p-values for hypothesis tests on residuals, |
| 31 |
or model convergence information. |
| 32 |
|
| 33 |
Glance never returns information from the original call to the modeling |
| 34 |
function. This includes the name of the modeling function or any |
| 35 |
arguments passed to the modeling function. |
| 36 |
|
| 37 |
Glance does not calculate summary measures. Rather, it farms out these |
| 38 |
computations to appropriate methods and gathers the results together. |
| 39 |
Sometimes a goodness of fit measure will be undefined. In these cases |
| 40 |
the measure will be reported as \code{NA}. |
| 41 |
|
| 42 |
Glance returns the same number of columns regardless of whether the |
| 43 |
model matrix is rank-deficient or not. If so, entries in columns |
| 44 |
that no longer have a well-defined value are filled in with an \code{NA} |
| 45 |
of the appropriate type. |
| 46 |
} |
| 47 |
\examples{ |
| 48 |
\dontshow{if (rlang::is_installed("metafor")) withAutoprint(\{ # examplesIf} |
| 49 |
|
| 50 |
library(metafor) |
| 51 |
|
| 52 |
df <- |
| 53 |
escalc( |
| 54 |
measure = "RR", |
| 55 |
ai = tpos, |
| 56 |
bi = tneg, |
| 57 |
ci = cpos, |
| 58 |
di = cneg, |
| 59 |
data = dat.bcg |
| 60 |
) |
| 61 |
|
| 62 |
meta_analysis <- rma(yi, vi, data = df, method = "EB") |
| 63 |
|
| 64 |
glance(meta_analysis) |
| 65 |
\dontshow{\}) # examplesIf} |
| 66 |
} |
| 67 |
\value{ |
| 68 |
A \code{\link[tibble:tibble]{tibble::tibble()}} with exactly one row and columns: |
| 69 |
\item{cochran.qe}{In meta-analysis, test statistic for the Cochran's Q_e test of residual heterogeneity.} |
| 70 |
\item{cochran.qm}{In meta-analysis, test statistic for the Cochran's Q_m omnibus test of coefficients.} |
| 71 |
\item{df.residual}{Residual degrees of freedom.} |
| 72 |
\item{h.squared}{Value of the H-Squared statistic.} |
| 73 |
\item{i.squared}{Value of the I-Squared statistic.} |
| 74 |
\item{measure}{The measure used in the meta-analysis.} |
| 75 |
\item{method}{Which method was used.} |
| 76 |
\item{nobs}{Number of observations used.} |
| 77 |
\item{p.value.cochran.qe}{In meta-analysis, p-value for the Cochran's Q_e test of residual heterogeneity.} |
| 78 |
\item{p.value.cochran.qm}{In meta-analysis, p-value for the Cochran's Q_m omnibus test of coefficients.} |
| 79 |
\item{tau.squared}{In meta-analysis, estimated amount of residual heterogeneity.} |
| 80 |
\item{tau.squared.se}{In meta-analysis, standard error of residual heterogeneity.} |
| 81 |
|
| 82 |
} |