mse {xtune} | R Documentation |
Calculate mean square error
Description
mse
calculate mean square error (MSE) between prediction values and true values for linear model
Usage
mse(pred, true)
Arguments
pred |
Prediction values vector |
true |
Actual values vector |
Value
mean square error
Examples
Y1 <- rnorm(10,0,1)
Y2 <- rnorm(10,0,1)
mse(Y1,Y2)
[Package xtune version 2.0.0 Index]