s_PSurv | R Documentation |
Fit a parametric survival regression model using survival::survreg
s_PSurv(
x,
y,
x.test = NULL,
y.test = NULL,
x.name = NULL,
y.name = NULL,
weights = NULL,
dist = "weibull",
control = survival::survreg.control(),
print.plot = FALSE,
plot.fitted = NULL,
plot.predicted = NULL,
plot.theme = rtTheme,
question = NULL,
verbose = TRUE,
trace = 0,
save.mod = FALSE,
outdir = NULL,
...
)
x |
Numeric vector or matrix of features, i.e. independent variables |
y |
Object of class "Surv" created using |
x.test |
(Optional) Numeric vector or matrix of testing set features
must have set of columns as |
y.test |
(Optional) Object of class "Surv" created using |
x.name |
Character: Name for feature set |
y.name |
Character: Name for outcome |
weights |
Float: Vector of case weights |
print.plot |
Logical: if TRUE, produce plot using |
plot.fitted |
Logical: if TRUE, plot True (y) vs Fitted |
plot.predicted |
Logical: if TRUE, plot True (y.test) vs Predicted.
Requires |
plot.theme |
Character: "zero", "dark", "box", "darkbox" |
question |
Character: the question you are attempting to answer with this model, in plain language. |
verbose |
Logical: If TRUE, print summary to screen. |
save.mod |
Logical: If TRUE, save all output to an RDS file in |
outdir |
Path to output directory.
If defined, will save Predicted vs. True plot, if available,
as well as full model output, if |
... |
Additional parameters to pass to |
Object of class rtMod
E.D. Gennatas
train_cv for external cross-validation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.