Closed njain007 closed 4 years ago
It is hard to tell with out a reproducible example, but I suspect that the problem is that your case weight column is not numeric based on:
Not compatible with requested type: [type=character; target=double].
Also, I'm not the maintainer for ranger
so ask questions at https://github.com/imbs-hl/ranger
.
Hi, I am new to R and exploring RF using ranger function. My variables are mostly categorical and having more than 50+ categories. Randomforest function has a limitation of 53 categories so I explored using ranger. However, when I apply case.weights = "WT", I get the following error.
Below is my code. Any help is very much appreciated. Thanks.