pistacliffcho / icenReg_devel

Code for icenReg plus testData
4 stars 0 forks source link

Possible bug in `cs2ic` #14

Open cwolock opened 1 year ago

cwolock commented 1 year ago

The cs2ic function seems to not work as intended when the eventOccurred argument is numeric (0s and 1s) rather than logical. I believe that the u[eventOccurred] and time[eventOccurred] indexing does not work. If eventOccurred consists of 0s and 1s, this indexing only pulls out the first entry. I think coercing eventOccurred to a logical would fix this.

Thanks! This package is super useful for me.