powered by
create new dataset while keeping cox regression results and returned coefficients
create_new_dataset(var, covar, dataset, categorical)
variable for which the levels have to be identified usually indep variable
the other covariates
the dataset where these variables contain
are these variables categorical? True of false
new data frame
# NOT RUN { dataset <- survival::lung new = create_new_dataset("status", c("age"), dataset, c(FALSE)) # }
Run the code above in your browser using DataLab