parametric | R Documentation |
Fit/predict implementation of survival::survreg()
, which can return
absolutely continuous distribution predictions using distr6.
parametric(
formula = NULL,
data = NULL,
reverse = FALSE,
time_variable = "time",
status_variable = "status",
x = NULL,
y = NULL,
eps = 1e-15,
...
)
formula |
|
data |
|
reverse |
|
time_variable |
|
status_variable |
|
x |
|
y |
|
eps |
|
... |
|
An object inheriting from class parametric
.
if (requireNamespaces(c("distr6", "survival"))) {
library(survival)
parametric(Surv(time, status) ~ ., data = simsurvdata(10))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.