The anteo package offers tools that work with Group LASSO (from the grplasso
package,
random forest objects (from the randomForest
package) and
conditional inference forest objects (from the party
package).
forest_viz
a simple visualization tool for looking at the relationships
of the n most imporant variables and the outcome (for randomForest
)
cforest_viz
a simple visualization tool for looking at the relationships
of the n most imporant variables and the outcome (for cforest
)
There are also two simple ggplot2
themes:
theme_anteo
theme_anteo_wh
Overall, the package helps with the exploration of large data sets.
Note: anteo means to prevent or go before in latin.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
library(anteo)
library(randomForest)
library(party)
library(grplasso)
## Random Forest
fit = randomForest(outcome ~ ., data=data)
forest_viz(fit)
## Conditional Inference Forest
fit2 = cforest(outcome ~ ., data=data)
cforest_viz(fit2, data = data, outcome = "outcome")
## Group LASSO
fit = cv_grplasso(outcome ~., .data=data, model = LinReg(), lambda = seq(from=50001, to=1, by=-5000))
fit
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.