Description Usage Arguments Note References See Also Examples

Compute root mean squared error, residual standard error or mean square error of fitted linear (mixed effects) models.

1 2 3 4 5 |

`fit` |
Fitted linear model of class |

`normalized` |
Logical, use |

**Root Mean Square Error**-
The RMSE is the square root of the variance of the residuals and indicates the absolute fit of the model to the data (difference between observed data to model's predicted values). “RMSE can be interpreted as the standard deviation of the unexplained variance, and has the useful property of being in the same units as the response variable. Lower values of RMSE indicate better fit. RMSE is a good measure of how accurately the model predicts the response, and is the most important criterion for fit if the main purpose of the model is prediction.” (Grace-Martin K: Assessing the Fit of Regression Models)

The normalized RMSE is the proportion of the RMSE related to the range of the response variable. Hence, lower values indicate less residual variance. **Residual Standard Error**-
The residual standard error is the square root of the residual sum of squares divided by the residual degrees of freedom.

**Mean Square Error**-
The mean square error is the mean of the sum of squared residuals, i.e. it measures the average of the squares of the errors. Lower values (closer to zero) indicate better fit.

Grace-Martin K: Assessing the Fit of Regression Models

`r2`

for R-squared or pseude-R-squared values, and
`cv`

for the coefficient of variation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.