{{category R}} {{category R.package}} {{category R.analysis}} !!!RandomForest {{outline}} ---- !インストール {{pre install.packages("randomForest", dependencies =T) library(randomForest) }} !実行 model <- randomforest(分類カテゴリ ~ ., data=データフレーム) model *予測精度:error rateとconfusion matrixが表示される importance(model) *変数の重要度(Gini係数)が表示される varImpPlot(model) *変数の重要度の可視化 !予測 predict(モデル, 新しいデータ) !!References https://qiita.com/nkjm/items/e751e49c7d2c619cbeab