goodness {forestPSD} | R Documentation |
Model quality assessment.
goodness(model,data)
model |
A modle. |
data |
Dataset. |
Model quality index as follow: MSE: the mean-squared-error; RMSE: the root-mean-squared-error; Rsquare: the variance of the predictions divided by the variance of the response; adj.Rsquare: adjusted the variance of the predictions divided by the variance of the response; MAE: the mean absolute error; MAPE: the mean absolute percentage error; RASE: the relative sum of absolute errors; AIC: Akaike's An Information Criterion; BIC: Schwarz's Bayesian criterion.
Result returns the results model quality index.
Zongzheng Chai, chaizz@126.com
mod <- lm(mpg ~ wt, data = mtcars)
goodness(mod, mtcars)