Add clicks to subdistribution curves for reconstructing CIC
Add clicks to subdistribution curves for reconstructing CIC
When there are more clicks in the composite (overall) outcome curve, we need to add them to the subdistribution curves. Find the time points in the composite data that are furthest away from the times in clicksDF, add these times to clicksDF with 0 jumps in cuminc.
add_clicks(clicksDF, targetTimes, nAdd)
Arguments
clicksDF: A data frame with the two columns, time and cuminc.
targetTimes: A vector of times from the composite KM plot.
nAdd: Number of times to add to clicksDF.
Returns
An augmented clicksDF with extra rows (no cuminc jumps in those extra times).