rmse {SoftBart} | R Documentation |
Root mean squared error
Description
Computes the root mean-squared error between y
and yhat
, given
by sqrt(mean((y - yhat)^2))
.
Usage
rmse(y, yhat)
Arguments
y |
the realized outcomes |
yhat |
the predicted outcomes |
Value
Returns the root mean-squared error.
Examples
rmse(c(1,1,1), c(1,0,2))
[Package SoftBart version 1.0.1 Index]