KarlaMonterrubioG/CompRisksVignettes

Update to timereg has broken CIF report

Closed this issue · 1 comments

The newest CRAN version of timereg has broken the CIF report. For some reason, cens.model = cox without explicitly specifying the weights is no longer supported.

https://github.com/scheike/timereg/blob/ca44719f4650a84ea981fd6c964897294ae5c31f/R/comprisk.r#L394-L418

This affects the following code which will now error.

https://github.com/KarlaMonterrubioG/Competing_risks/blob/7178c981e6673dafc45105ecaaff7c4905d5a4e7/Source/CIF_specification.Rmd#L384-L402

The options seem to be:

  1. Set cens.model = "KM" or cens.model = "stratKM" instead of "cox".
  2. Use Docker to ensure an older version is used (presumably this feature was removed for a reason though).
  3. Remove the entire timereg section.

I have pushed a change just setting cens.model to the default value