I think I've found a small problem with the "smcfcs" package in R (version 1.6.0) when using coxph regression. In the "survival" package the coxph() function handles both 0/1 event indicators and 1/2 indicators equally. But, the smcfcs() function with 'smtype = "coxph"' does not. When using 1/2 indicators smcfcs() still performs the calculations, but it gives incorrect results. The documentation mentions that when using 'smtype = "compet"' the events should be coded as 0/1/... with 0 for censoring. But it doesn't say that's required for 'smtype = "coxph"'. Perhaps a warning or error could be added to smcfcs() to detect if 1/2 indicators are used?
I think I've found a small problem with the "smcfcs" package in R (version 1.6.0) when using coxph regression. In the "survival" package the coxph() function handles both 0/1 event indicators and 1/2 indicators equally. But, the smcfcs() function with 'smtype = "coxph"' does not. When using 1/2 indicators smcfcs() still performs the calculations, but it gives incorrect results. The documentation mentions that when using 'smtype = "compet"' the events should be coded as 0/1/... with 0 for censoring. But it doesn't say that's required for 'smtype = "coxph"'. Perhaps a warning or error could be added to smcfcs() to detect if 1/2 indicators are used?