Learn R Programming

rtemis (version 0.79)

s.PSURV: Parametric Survival Regression [S]

Description

Fit a parametric survival regression model using survival::survreg

Usage

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 = TRUE,
  plot.fitted = NULL, plot.predicted = NULL,
  plot.theme = getOption("rt.fit.theme", "lightgrid"), question = NULL,
  verbose = TRUE, trace = 0, save.mod = FALSE, outdir = NULL, ...)

Arguments

x

Numeric vector or matrix of features, i.e. independent variables

y

Object of class "Surv" created using survival::Surv

x.test

(Optional) Numeric vector or matrix of testing set features must have set of columns as x

y.test

(Optional) Object of class "Surv" created using survival::Surv

weights

Float: Vector of case weights

...

Additional parameters to pass to survival::survreg

Value

Object of class rtMod

See Also

elevate for external cross-validation