-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathdetails_survival_reg_flexsurvspline.Rd
80 lines (64 loc) · 2.56 KB
/
details_survival_reg_flexsurvspline.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival_reg_flexsurvspline.R
\name{details_survival_reg_flexsurvspline}
\alias{details_survival_reg_flexsurvspline}
\title{Flexible parametric survival regression}
\description{
\code{\link[flexsurv:flexsurvspline]{flexsurv::flexsurvspline()}} fits a flexible parametric survival model.
}
\details{
For this engine, there is a single mode: censored regression
\subsection{Tuning Parameters}{
This model has one engine-specific tuning parameter:
\itemize{
\item \code{k}: Number of knots in the spline. The default is \code{k = 0}.
}
}
\subsection{Translation from parsnip to the original package}{
The \strong{censored} extension package is required to fit this model.
\if{html}{\out{<div class="sourceCode r">}}\preformatted{library(censored)
survival_reg() \%>\%
set_engine("flexsurvspline") \%>\%
set_mode("censored regression") \%>\%
translate()
}\if{html}{\out{</div>}}
\if{html}{\out{<div class="sourceCode">}}\preformatted{## Parametric Survival Regression Model Specification (censored regression)
##
## Computational engine: flexsurvspline
##
## Model fit template:
## flexsurv::flexsurvspline(formula = missing_arg(), data = missing_arg(),
## weights = missing_arg())
}\if{html}{\out{</div>}}
}
\subsection{Other details}{
The main interface for this model uses the formula method since the
model specification typically involved the use of
\code{\link[survival:Surv]{survival::Surv()}}.
For this engine, stratification cannot be specified via
\code{\link[=strata]{strata()}}, please see
\code{\link[flexsurv:flexsurvspline]{flexsurv::flexsurvspline()}} for
alternative specifications.
Predictions of type \code{"time"} are predictions of the mean survival time.
}
\subsection{Case weights}{
This model can utilize case weights during model fitting. To use them,
see the documentation in \link{case_weights} and the examples
on \code{tidymodels.org}.
The \code{fit()} and \code{fit_xy()} arguments have arguments called
\code{case_weights} that expect vectors of case weights.
}
\subsection{Saving fitted model objects}{
This model object contains data that are not required to make
predictions. When saving the model for the purpose of prediction, the
size of the saved object might be substantially reduced by using
functions from the \href{https://butcher.tidymodels.org}{butcher} package.
}
\subsection{References}{
\itemize{
\item Jackson, C. 2016. \code{flexsurv}: A Platform for Parametric Survival
Modeling in R. \emph{Journal of Statistical Software}, 70(8), 1 - 33.
}
}
}
\keyword{internal}