Wraps survival::survreg(). Supported dist: "weibull", "lognormal",
"loglogistic", "exponential", "gaussian".
Usage
morie_survival_aft(
data,
duration_col,
event_col,
covariate_cols,
dist = c("weibull", "lognormal", "loglogistic", "exponential", "gaussian")
)Arguments
- data
A
data.framewhose columns supplyduration_col,event_col,covariate_cols, etc.- duration_col
Character; column name of the event/censoring time in
data.- event_col
Character; column name of the event-indicator variable in
data.- covariate_cols
Character vector of covariate column names.
- dist
Distribution name for parametric/AFT fits (e.g.
"weibull","lognormal","loglogistic").