| rmse_per | R Documentation | 
Function for calculating the Root-Mean-Square-Error of an estimator.
rmse_per(df, y, yhat, na.rm = TRUE)
| df | a data frame. | 
| y | Quoted name of the variable representing the observed values in the data frame. If a data frame is not provided,  | 
| yhat | Quoted name of the variable representing the estimated values in the data frame. If a data frame is not provided,  | 
| na.rm | a logical value indicating whether NA values should be stripped before the computation proceeds. default:  | 
Function for calculating the Root-Mean-Square-Error of an estimator, given the observed values, and the estimated values.
Numeric vector with the RMSE value, in percentage.
Sollano Rabelo Braga sollanorb@gmail.com
other statistics to evaluate estimators: 
bias_per for the bias of an estimator
library(forestmangr)
data("exfm11")
head(exfm11)
# RMSE of an estimator, given the data frame and quoted variable names:
rmse_per(exfm11, "TH", "TH_EST3")
# RMSE of an estimator, given the vectors for observed and estimated values:
rmse_per(y = exfm11$TH, yhat = exfm11$TH_EST3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.