RF_Model | R Documentation |
Random Forest
RF_Model(Data, xvar, yvar)
Data |
The name of the Dataset. |
xvar |
X variables. |
yvar |
Y variable. |
Rather than considering the random sample of m predictors from the total of p predictors in each split, random forest does not consider a majority of the p predictors, and considers in each split a fresh sample of m_{try} which we usually set to m_{try} \approx √{p} Random forests which de-correlate the trees by considering m_{try} \approx √{p} show an improvement over bagged trees m = p.
The output from RF_Model
.
sample_data <- sample_data[c(1:750),] yvar <- c("Loan.Type") xvar <- c("sex", "married", "age", "havejob", "educ", "political.afl", "rural", "region", "fin.intermdiaries", "fin.knowldge", "income") BchMk.RF <- RF_Model(sample_data, c(xvar, "networth"), yvar ) BchMk.RF
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.