remove_clicks: Remove clicks from subdistribution curves for reconstructing...

Description Usage Arguments Value Examples

View source: R/remove_clicks.R

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

1
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

1
2
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)

reconstructKM documentation built on Nov. 25, 2020, 5:08 p.m.