Remove clicks from subdistribution curves for reconstructing CIC
Remove clicks from subdistribution curves for reconstructing CIC
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.
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.