This function makes life simple by automatically fitting a logistic regression model.
1 2 3 4 5 6 7 | get.random.forest.classification(
dataset,
indep,
dep,
training.index,
ntree = 100
)
|
dataset |
a data frame for data |
indep |
a characters or a vector of characters for independent variables |
dep |
a characters for a dependent variable |
training.index |
a vector of numerics for training data indexes |
ntree |
a numeric for the number of trees |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.