coxphmulti {finalfit} | R Documentation |
finalfit
model wrapperUsing finalfit
conventions, produces multivariable Cox
Proportional Hazard regression models for a set of explanatory variables
against a survival object.
coxphmulti(.data, dependent, explanatory, ...)
.data |
Data frame. |
dependent |
Character vector of length 1: name of survival object in
form |
explanatory |
Character vector of any length: name(s) of explanatory variables. |
... |
Other arguments to pass to |
Uses coxph
with finalfit
modelling
conventions. Output can be passed to fit2df
.
A multivariable coxph
fitted model
output. Output is of class coxph
.
Other finalfit model wrappers:
coxphuni()
,
crrmulti()
,
crruni()
,
glmmixed()
,
glmmulti_boot()
,
glmmulti()
,
glmuni()
,
lmmixed()
,
lmmulti()
,
lmuni()
,
svyglmmulti()
,
svyglmuni()
# Cox Proportional Hazards multivariable analysis. library(finalfit) library(dplyr) explanatory = c("age.factor", "sex.factor", "obstruct.factor", "perfor.factor") dependent = "Surv(time, status)" colon_s %>% coxphmulti(dependent, explanatory) %>% fit2df()