GOF: Standard GOF metrics
Startvalues for sampling with nrChains > 1 : if you want to provide different start values for the different chains, provide a list
Description
Standard GOF metrics
Startvalues for sampling with nrChains > 1 : if you want to provide different start values for the different chains, provide a list
Usage
GOF(observed, predicted, plot = F, centered = T)
Value
A list with the following entries: rmse = root mean squared error, mae = mean absolute error, slope = slope of regression, offset = intercept of regression, R2 = R2 of regression
Arguments
observed
observed values
predicted
predicted values
plot
should a plot be created
centered
if T, variables are centered to the mean of the observations, i.e. the intercept is for the mean value of the observation
Author
Florian Hartig
Details
The function considers observed ~ predicted and calculates
rmse = root mean squared error
mae = mean absolute errorr
a linear regression with slope, intercept and coefficient of determination R2
For the linear regression, centered = T means that variables will be centered around the mean value of the observation. This setting avoids a correlation between slope and intercept (that the intercept is != 0 as soon as the slope is !=0)