Hello (again),
Really enjoy using this package and thankful for your efforts with adjustedCurves! I've noticed that adjusted_curve_diff and adjusted_curve_ratio will give NA values for the quantities they estimate if the times argument has a value is beyond when the last event occurred. As long as at least one individual is still under follow-up, one should (ideally) be able to get estimates for these values. For instance running:
adjusted_curve_ratio(adjsurv, times=1825, group_1="1", group_2="0", conf_int=TRUE)
will produce NAs for the ratio because the last event was at day 1450. However, the longest time to censoring is 2000, so the risk ratio should be constant between 1450 and 2000 (but still calculatable at day 2000). This will happen anytime the max censoring time is past the max event time. The current workaround is to: 1) Find the last event time 2) calculate the RR at that event time, 3) find the last follow-up date, 4) carry the RR forward to the last follow-up date.
Not sure if this an issue or enhancement, but would be awesome when possible to look into or add this feature. :)
Thanks again!
Charley
Hello (again),
Really enjoy using this package and thankful for your efforts with adjustedCurves! I've noticed that adjusted_curve_diff and adjusted_curve_ratio will give NA values for the quantities they estimate if the times argument has a value is beyond when the last event occurred. As long as at least one individual is still under follow-up, one should (ideally) be able to get estimates for these values. For instance running:
adjusted_curve_ratio(adjsurv, times=1825, group_1="1", group_2="0", conf_int=TRUE)
will produce NAs for the ratio because the last event was at day 1450. However, the longest time to censoring is 2000, so the risk ratio should be constant between 1450 and 2000 (but still calculatable at day 2000). This will happen anytime the max censoring time is past the max event time. The current workaround is to: 1) Find the last event time 2) calculate the RR at that event time, 3) find the last follow-up date, 4) carry the RR forward to the last follow-up date.
Not sure if this an issue or enhancement, but would be awesome when possible to look into or add this feature. :)
Thanks again!
Charley