kogalur / randomForestSRC

DOCUMENTATION:
https://www.randomforestsrc.org/
GNU General Public License v3.0
113 stars 18 forks source link

case.wt causes error #301

Closed li-xuyang28 closed 1 year ago

li-xuyang28 commented 1 year ago

When trying to apply case weight (which is a column of the input data.frame, that is of type numeric), the following error occur:

Error in get.weight(case.wt, subj.unique.count) : 'list' object cannot be coerced to type 'double'

If I check the input column, it is indeed numeric

class(data.rfsrc$weights) [1] "numeric"

There is no missing value and it runs normally without class.wt.