View source: R/PerfsRegression.R
PerfsRegression | R Documentation |
Computes various performance measures for regression tasks : sum of the squared errors (SSE), mean squared errors (MSE), root mean squared errors (RMSE), coefficient of determination (R2), Kendall's rank correlation (tau).
PerfsRegression(pred, actual)
pred |
numerical vector of predicted values |
actual |
numerical vector of actual values |
A numeric vector of performance measures.
data(titanic)
titanic <- titanic[complete.cases(titanic),]
model <- partykit::ctree(Age ~ Sex + Pclass, data = titanic)
pred <- predict(model)
PerfsRegression(pred, titanic$Age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.