`survival_reg()`

is a way to generate a *specification* of a model
before fitting and allows the model to be created using
R. The main argument for the
model is:

`dist`

: The probability distribution of the outcome.

This argument is converted to its specific names at the
time that the model is fit. Other options and argument can be
set using `set_engine()`

. If left to its default
here (`NULL`

), the value is taken from the underlying model
functions. If parameters need to be modified, `update()`

can be used
in lieu of recreating the object from scratch.

survival_reg(mode = "censored regression", engine = "survival", dist = NULL)

mode | A single character string for the prediction outcome mode. The only possible value for this model is "censored regression". |
---|---|

engine | A single character string specifying what computational engine
to use for fitting. Possible engines are listed below. The default for this
model is |

dist | A character string for the outcome distribution. "weibull" is the default. |

The data given to the function are not saved and are only used
to determine the *mode* of the model. For `survival_reg()`

,the
mode will always be "censored regression".

Since survival models typically involve censoring (and require the use of
`survival::Surv()`

objects), the `fit.model_spec()`

function will require that the
survival model be specified via the formula interface.

survival_reg()#> Parametric Survival Regression Model Specification (censored regression) #> #> Computational engine: survival #>