qgcomp icon indicating copy to clipboard operation
qgcomp copied to clipboard

Dimension error in qgcomp.cox.boot

Open alexpkeil1 opened this issue 5 years ago • 4 comments

You may see an error like this:

Error in `$<-.data.frame`(`*tmp*`, "weights", value = c(1, 1, 1, 1, 1, : replacement has 332 rows, data has 1664

This appears to be related to having missing values in the data.

alexpkeil1 avatar Sep 15 '20 11:09 alexpkeil1

qgcomp.cox.boot works on complete case data. For now, error codes will be updated to reflect this, as I'm not sure having this as an invisible error is advisable (though the noboot function works as expected). In the near future, I may consider implementing automatic complete case restrictions in the function.

alexpkeil1 avatar Sep 15 '20 12:09 alexpkeil1