Closed kaas66 closed 3 years ago
Thanks @kaas66 for this issue. The short answer is that there is currently no method using Relative Weights to use numeric predictors to estimate variable importance. There is a method to use logistic regression (binary outcomes) for rwa that we are still working on in a pull request, but it is only available as it was based on the original authors' (Tonidandel and LeBreton) work.
For your use case, I might recommend considering other methods of estimating variable importance, like with a random forest, or check out methods in the {vip} R package.
However would really welcome to get any help or support on this question!
Closing this as this is currently beyond the scope of this package.
I have used the R-package rwa with great success when I just have numeric variables. However, I now just tried with a data set with both numeric and categorical variables and then I received an error message.
I therefore wonder whether the rwa method may be used for numeric variables only or if there is a way to "convert" the categorical variables to numeric ones that makes the method work even when we have categorical variables?