Learn R Programming

maicplus (version 0.1.2)

ext_tte_transfer: helper function: transform TTE ADaM data to suitable input for survival R package

Description

helper function: transform TTE ADaM data to suitable input for survival R package

Usage

ext_tte_transfer(dd, time_scale = "months", trt = NULL)

Value

a data frame that can be used as input to survival::Surv

Arguments

dd

data frame, ADTTE read via haven::read_sas

time_scale

a character string, 'years', 'months', 'weeks' or 'days', time unit of median survival time

trt

values to include in treatment column