Hereby a first pull request for the Fine–Gray SMC-FCS functionality. In summary:
New wrapper function smcfcs.finegray(), which calls kmi::kmi() ({kmi} package added to suggests).
New example dataset ex_finegray: like ex_compet, except generated from a Fine–Gray model.
Added a couple of very basic tests (in the style of the tests in test_coxph.r).
Unrelated to the functionality but I ran style_dir() on the package, which does not change any code functionality but just applies consistent spacing/indentation (hence why it looks like I changed a lot in this pull request).
Some issues to solve eventually:
smcfcs.finegray() cannot yet be called by smcfcs.parallel().
I think kmi() is subject to similar issues (as once fixed for smcfcs()) with the timefix argument in {survival} functions.. it will not be an issue for most users, but will be for those running simulations.
Hi Jonathan,
Hereby a first pull request for the Fine–Gray SMC-FCS functionality. In summary:
smcfcs.finegray()
, which callskmi::kmi()
({kmi}
package added to suggests).ex_finegray
: likeex_compet
, except generated from a Fine–Gray model.style_dir()
on the package, which does not change any code functionality but just applies consistent spacing/indentation (hence why it looks like I changed a lot in this pull request).Some issues to solve eventually:
smcfcs.finegray()
cannot yet be called bysmcfcs.parallel()
.kmi()
is subject to similar issues (as once fixed forsmcfcs()
) with thetimefix
argument in{survival}
functions.. it will not be an issue for most users, but will be for those running simulations.Thanks!