Debian Codegraph @

man/metafor_tidiers.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/metafor.R
3 \name{tidy.rma}
4 \alias{tidy.rma}
5 \title{Tidy a(n) rma object}
6 \usage{
7 \method{tidy}{rma}(
8 x,
9 conf.int = FALSE,
10 conf.level = 0.95,
11 exponentiate = FALSE,
12 include_studies = FALSE,
13 measure = "GEN",
14 ...
15 )
16 }
17 \arguments{
18 \item{x}{An \code{rma} object such as those created by \code{\link[metafor:rma.uni]{metafor::rma()}},
19 \code{\link[metafor:rma.uni]{metafor::rma.uni()}}, \code{\link[metafor:rma.glmm]{metafor::rma.glmm()}}, \code{\link[metafor:rma.mh]{metafor::rma.mh()}},
20 \code{\link[metafor:rma.mv]{metafor::rma.mv()}}, or \code{\link[metafor:rma.peto]{metafor::rma.peto()}}.}
21
22 \item{conf.int}{Logical indicating whether or not to include a confidence
23 interval in the tidied output. Defaults to \code{FALSE}.}
24
25 \item{conf.level}{The confidence level to use for the confidence interval
26 if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1.
27 Defaults to 0.95, which corresponds to a 95 percent confidence interval.}
28
29 \item{exponentiate}{Logical indicating whether or not to exponentiate the
30 the coefficient estimates. This is typical for logistic and multinomial
31 regressions, but a bad idea if there is no log or logit link. Defaults
32 to \code{FALSE}.}
33
34 \item{include_studies}{Logical. Should individual studies be included in the
35 output? Defaults to \code{FALSE}.}
36
37 \item{measure}{Measure type. See \code{\link[metafor:escalc]{metafor::escalc()}}}
38
39 \item{...}{Additional arguments. Not used. Needed to match generic
40 signature only. \strong{Cautionary note:} Misspelled arguments will be
41 absorbed in \code{...}, where they will be ignored. If the misspelled
42 argument has a default value, the default value will be used.
43 For example, if you pass \code{conf.lvel = 0.9}, all computation will
44 proceed using \code{conf.level = 0.95}. Two exceptions here are:
45 \itemize{
46 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
47 it will be ignored.
48 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
49 will be ignored.
50 }}
51 }
52 \description{
53 Tidy summarizes information about the components of a model.
54 A model component might be a single term in a regression, a single
55 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
56 model component varies across models but is usually self-evident.
57 If a model has several distinct types of components, you will need to
58 specify which components to return.
59 }
60 \examples{
61 \dontshow{if (rlang::is_installed("metafor")) withAutoprint(\{ # examplesIf}
62
63 # load libraries for models and data
64 library(metafor)
65
66 df <-
67 escalc(
68 measure = "RR",
69 ai = tpos,
70 bi = tneg,
71 ci = cpos,
72 di = cneg,
73 data = dat.bcg
74 )
75
76 meta_analysis <- rma(yi, vi, data = df, method = "EB")
77
78 tidy(meta_analysis)
79 \dontshow{\}) # examplesIf}
80 }
81 \value{
82 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
83 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
84 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
85 \item{estimate}{The estimated value of the regression term.}
86 \item{p.value}{The two-sided p-value associated with the observed statistic.}
87 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
88 \item{std.error}{The standard error of the regression term.}
89 \item{term}{The name of the individual study}
90 \item{type}{The estimate type (summary vs individual study)}
91
92 }