Do not call this function on its own
find.variables(formula)
formula
character vector of the formula's variable names
library(dpasurv) data(simdata) vars <- find.variables(x ~ outcome)