mse | R Documentation |
Compute the Mean Squared Error
mse(Y, Y_hat, n = NROW(Y), p)
Y |
Response vector. |
Y_hat |
Vector of predictions. |
n |
Number of rows in design matrix. |
p |
Number of columns in design matrix. |
This function computes the mean squared error, given coefficient and prediction vectors and the parameters for computing degrees of freedom.
Estimated mean squared error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.