Is categorical variables available?
Closed this issue · 4 comments
Thanks for you contribution!
I have trouble with the type of input data.
I specially changed the data type from ”double“ to '”factor“, and Mime could work normally. However, when I further ranked the importance of variables, all continuous variables were more important than categorical variables, which was obviously wrong with clinical practice and previous logistic analysis. Then we carefully analyze your code and find that when building the model, the Mime package automatically converts the factorl variable into a numerical form.
Hence, how should I correctly use both categorical variables and continuous variables to build the model ?
Currently, Mime only support numerical matrices data. Thank you.
What happens after I code a categorical variable?
I haven't tried. If your categorical variables are grade factors, maybe you can change them to numerical variables, such as 0,1,2,3 to run.
Thank you, I'll try it.