-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression with random forests plot predicted vs observed #456
Comments
Hi @fconstancias
If the response variable is numeric class, the model will automatically use regression instead of classification.
To include additional non microbiota data into the model, the best way is to directly adding them into the prepared data (i.e.
For 'assess if the variable (taxa) selected by the model are positively or negatively associated with the variable?', I think it will be easy to use trans_env class to perform a correlation.
Please feel free to tell me if a step is not clear. Best, |
That's excellent. Thanks! |
I think partial dependence plots e.g., using the pdp package could be a more direct way to extract this information from the random forest model. also see: |
Hi @fconstancias Best, |
Hi @ChiLiubio,
Many thanks for developing this package! I would like to predict gingival inflammation marker together with salivary microbiota. I have been using
trans_classifier()
which is super cool. https://chiliubio.github.io/microeco_tutorial/model-based-class.html#trans_classifier-classI have first binned my inflammation variable into categories (High, medium, low) and it seems it can do a good job.
Is there any easy way to extract which taxa are associated with which groups? Is it possible to add additional metadata for the model, in addition to the taxa/OTU (e.g., blood marker, age, ...) ?
I would like to avoid using the classification and directly try to predict the inflammation variable? I can perform
logistic_regression
with therf
method oftrans_classifier()
and was able to obtain IncNodePurity scores and %IncMSE for the relevant taxa.Many thanks!
Flo
The text was updated successfully, but these errors were encountered: