Description Usage Arguments Value Examples
pseudo R-square (R2) computation - proportion of total variance in response variable explained by the tree model. The function takes observed and predicted responses as input arguments and computes pseudo-R2 to determine how well the tree model fits the given data.
1 | compute.r2(response, predictions)
|
response |
A vector of actual response of outcome variable. |
predictions |
A vector of predictions for the same outcome variable |
Predictive accuracy estimates ranging between 0 and 1.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.