Debian Codegraph @

man/tidy.survexp.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/survival-survexp.R
3 \name{tidy.survexp}
4 \alias{tidy.survexp}
5 \alias{sexpfit_tidiers}
6 \alias{survexp_tidiers}
7 \title{Tidy a(n) survexp object}
8 \usage{
9 \method{tidy}{survexp}(x, ...)
10 }
11 \arguments{
12 \item{x}{An \code{survexp} object returned from \code{\link[survival:survexp]{survival::survexp()}}.}
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 Tidy summarizes information about the components of a model.
29 A model component might be a single term in a regression, a single
30 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
31 model component varies across models but is usually self-evident.
32 If a model has several distinct types of components, you will need to
33 specify which components to return.
34 }
35 \examples{
36 \dontshow{if (rlang::is_installed("survival")) withAutoprint(\{ # examplesIf}
37
38 # load libraries for models and data
39 library(survival)
40
41 # fit model
42 sexpfit <- survexp(
43 futime ~ 1,
44 rmap = list(
45 sex = "male",
46 year = accept.dt,
47 age = (accept.dt - birth.dt)
48 ),
49 method = "conditional",
50 data = jasa
51 )
52
53 # summarize model fit with tidiers
54 tidy(sexpfit)
55 glance(sexpfit)
56 \dontshow{\}) # examplesIf}
57 }
58 \seealso{
59 \code{\link[=tidy]{tidy()}}, \code{\link[survival:survexp]{survival::survexp()}}
60
61 Other survexp tidiers:
62 \code{\link{glance.survexp}()}
63
64 Other survival tidiers:
65 \code{\link{augment.coxph}()},
66 \code{\link{augment.survreg}()},
67 \code{\link{glance.aareg}()},
68 \code{\link{glance.cch}()},
69 \code{\link{glance.coxph}()},
70 \code{\link{glance.pyears}()},
71 \code{\link{glance.survdiff}()},
72 \code{\link{glance.survexp}()},
73 \code{\link{glance.survfit}()},
74 \code{\link{glance.survreg}()},
75 \code{\link{tidy.aareg}()},
76 \code{\link{tidy.cch}()},
77 \code{\link{tidy.coxph}()},
78 \code{\link{tidy.pyears}()},
79 \code{\link{tidy.survdiff}()},
80 \code{\link{tidy.survfit}()},
81 \code{\link{tidy.survreg}()}
82 }
83 \concept{survexp tidiers}
84 \concept{survival tidiers}
85 \value{
86 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
87 \item{n.risk}{Number of individuals at risk at time zero.}
88 \item{time}{Point in time.}
89 \item{estimate}{Estimate survival}
90
91 }