Learn R Programming

packDAMipd (version 1.1.0)

create_new_dataset: 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)

Value

new data frame

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

Examples

Run this code
dataset <- survival::lung
new = create_new_dataset("status", c("age"), dataset, c(FALSE))

Run the code above in your browser using DataLab