AlanInglis / vivid

This package is for visualising variable importance and variable interaction.
https://alaninglis.github.io/vivid/
20 stars 2 forks source link

vivid include all variables in the data, even thought I did not list them in the model #8

Closed jielab closed 5 months ago

jielab commented 5 months ago

Hi, there:

Please see the screenshot below. Although I only listed 6 covariates in my randomForest() model, vivi() output all variables. Those unlisted variables show up as 0.00. I hope that vivid did not actually do anything with those variables.

image

Best regards, Jie

AlanInglis commented 5 months ago

Hi,

Since all the variables are included in the data argument that is passed to vivid (despite only a selection of them being used in the model), vivid deals with these variables by just ignoring them and setting the values to zero. I suggest that you read either the vignette found at: https://alaninglis.github.io/vivid/articles/vividVignette.html

Or either paper related to the package, found at:

1) https://www.tandfonline.com/doi/pdf/10.1080/10618600.2021.2007935 2) https://journal.r-project.org/articles/RJ-2023-054/RJ-2023-054.pdf

All of your related issues can be solved and explained by reading these articles.

Marking this as closed as the issue has been solved.