From the course: Tableau and R for Analytics Projects
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create a random forest analysis model in R
From the course: Tableau and R for Analytics Projects
Create a random forest analysis model in R
- [Instructor] Performing random forest analysis in R requires building a model based on training data, and then testing it on separate data with known values. Testing your values lets you guard against over fitting, which happens when you build a model that is too closely tied to your training data set and it could provide inaccurate results on data you collect later. In this movie, we will build a random forest model in R. I've started a new blank R console. And the first thing I need to do is install the random forest package. So I'll type install.packages, and then in parenthesis and double quotes, randomForest, and make sure that you pay attention to how this is spelled. So it's lowercase R, A-N-D-O-M, then uppercase F, O-R-E-S-T, double quote, and then close with a right parenthesis. So it's all one word, lowercase first R, and the F is capitalized, and enter. Now I need to select a a CRAN repository or CRAN mirror.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.