create_new_dataset {packDAMipd} | R Documentation |
create new dataset while keeping cox regression results and returned coefficients
Description
create new dataset while keeping cox regression results and returned coefficients
Usage
create_new_dataset(var, covar, dataset, categorical)
Arguments
var |
variable for which the levels have to be identified usually indep variable |
covar |
the other covariates |
dataset |
the dataset where these variables contain |
categorical |
are these variables categorical? True of false |
Value
new data frame
Examples
dataset <- survival::lung
new = create_new_dataset("status", c("age"), dataset, c(FALSE))
[Package packDAMipd version 1.1.0 Index]