rmse {SoftBart} | R Documentation |
Computes the root mean-squared error between y
and yhat
, given
by sqrt(mean((y - yhat)^2))
.
rmse(y, yhat)
y |
the realized outcomes |
yhat |
the predicted outcomes |
Returns the root mean-squared error.
rmse(c(1,1,1), c(1,0,2))