Debian Codegraph @

man/tidy.survdiff.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/survival-survdiff.R
3 \name{tidy.survdiff}
4 \alias{tidy.survdiff}
5 \alias{survdiff_tidiers}
6 \title{Tidy a(n) survdiff object}
7 \usage{
8 \method{tidy}{survdiff}(x, ...)
9 }
10 \arguments{
11 \item{x}{An \code{survdiff} object returned from \code{\link[survival:survdiff]{survival::survdiff()}}.}
12
13 \item{...}{Additional arguments. Not used. Needed to match generic
14 signature only. \strong{Cautionary note:} Misspelled arguments will be
15 absorbed in \code{...}, where they will be ignored. If the misspelled
16 argument has a default value, the default value will be used.
17 For example, if you pass \code{conf.lvel = 0.9}, all computation will
18 proceed using \code{conf.level = 0.95}. Two exceptions here are:
19 \itemize{
20 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
21 it will be ignored.
22 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
23 will be ignored.
24 }}
25 }
26 \description{
27 Tidy summarizes information about the components of a model.
28 A model component might be a single term in a regression, a single
29 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
30 model component varies across models but is usually self-evident.
31 If a model has several distinct types of components, you will need to
32 specify which components to return.
33 }
34 \examples{
35 \dontshow{if (rlang::is_installed("survival")) withAutoprint(\{ # examplesIf}
36
37 # load libraries for models and data
38 library(survival)
39
40 # fit model
41 s <- survdiff(
42 Surv(time, status) ~ pat.karno + strata(inst),
43 data = lung
44 )
45
46 # summarize model fit with tidiers
47 tidy(s)
48 glance(s)
49 \dontshow{\}) # examplesIf}
50 }
51 \seealso{
52 \code{\link[=tidy]{tidy()}}, \code{\link[survival:survdiff]{survival::survdiff()}}
53
54 Other survdiff tidiers:
55 \code{\link{glance.survdiff}()}
56
57 Other survival tidiers:
58 \code{\link{augment.coxph}()},
59 \code{\link{augment.survreg}()},
60 \code{\link{glance.aareg}()},
61 \code{\link{glance.cch}()},
62 \code{\link{glance.coxph}()},
63 \code{\link{glance.pyears}()},
64 \code{\link{glance.survdiff}()},
65 \code{\link{glance.survexp}()},
66 \code{\link{glance.survfit}()},
67 \code{\link{glance.survreg}()},
68 \code{\link{tidy.aareg}()},
69 \code{\link{tidy.cch}()},
70 \code{\link{tidy.coxph}()},
71 \code{\link{tidy.pyears}()},
72 \code{\link{tidy.survexp}()},
73 \code{\link{tidy.survfit}()},
74 \code{\link{tidy.survreg}()}
75 }
76 \concept{survdiff tidiers}
77 \concept{survival tidiers}
78 \value{
79 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
80 \item{exp}{Weighted expected number of events in each group.}
81 \item{N}{Number of subjects in each group.}
82 \item{obs}{weighted observed number of events in each group.}
83
84 }