mse | R Documentation |
Computes mean squared error.
mse( pred, actual, weight = 1, na.rm = FALSE )
pred |
a numerical vector of estimated values. |
actual |
a numerical vector of actual values. |
weight |
a numerical vector of weights the same length as |
na.rm |
a logical value indicating whether NA values in |
The computed mean squared error (numeric value).
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
mae
pred = c( 2.3, -1.4, 0, 3.45 )
actual = c( 2.1, -0.9, 0, 2.99 )
mse( pred, actual )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.