transformData: Transform a survival dataset from short to long form

View source: R/utils.R

transformDataR Documentation

Transform a survival dataset from short to long form

Description

Transform a survival dataset from short to long form

Usage

transformData(df, freq.time)

Arguments

df

A data frame containing columns T (time to event) and C (censoring indicator)

freq.time

If time T must be ccategorized into coarser intervals (e.g., use freq.time = 7 if T is in days and you want the output in weeks)

Value

A long form data set


idiazst/survtmlerct documentation built on Aug. 28, 2023, 10:13 a.m.