remove_clicks {reconstructKM}R Documentation

Remove clicks from subdistribution curves for reconstructing CIC

Description

When there are fewer clicks in the composite (overall) outcome curve, we need to remove them from the subdistribution curves. Find the time points in the subdistribution data that are furthest away from the composite curve times, remove those times.

Usage

remove_clicks(clicksDF, targetTimes, nRemove)

Arguments

clicksDF

A data frame with the two columns time and cuminc.

targetTimes

A vector of times from the composite KM plot.

nRemove

Number of times to remove from clicksDF.

Value

A clicksDF with fewer rows.

Examples

clicksDF <- data.frame(time=0:10, cuminc=seq(from=0, to=1, by=0.1))
remove_clicks(clicksDF, targetTimes = runif(n=7, min=0, max=10), nRemove=3)

[Package reconstructKM version 0.3.0 Index]