Learn R Programming

sirad (version 2.0-7)

modeval: Estimators of the model performance.

Description

Function estimates several statistics comparing modelled and reference (measured) values.

Usage

modeval(calculated,measured,stat=c("N","pearson","MBE","MAE","RMSE","RRMSE","R2","slope","intercept","EF","SD","CRM","MPE","AC","ACu","ACs"),minlength=4)

Arguments

calculated
Vector of length n of the calculated (modelled) values.
measured
Vector of length n of the reference (measured) values.
stat
Statistics which are going to be calculated. By default all possible.
minlength
Minimum number of non-NA data pairs. If below this value, the NA's are produced.

Value

  • List of 13 statistics:
  • Nnumber of observations
  • personPearson's Correlation Coefficient
  • MBEMean (Bias) Error
  • MAEMean Absolute Error
  • RMSERoot Mean Square Error
  • RRMSERelative Root Mean Square Error
  • R2Coefficient of determination from linear model
  • slopeSlope from linear model
  • interceptIntercept from linear model
  • EFModelling Efficiency
  • SDStandard deviation of differences
  • CRMCoefficient of Residual Mass
  • MPEMean Percentage Error
  • ACAgreement Coefficient
  • ACuUnsystematic Agreement Coefficient
  • ACsSystematic Agreement Coefficient

Details

The two input vectors can include NA's. Only non-NA calculated-mesured pairs are used. See 'na.omit' for details.

References

Bellocchi, G., Acutis, M., Fila, G., Donatelli, M., 2002. An indicator of solar radiation model performance based on a fuzzy expert system. Agronomy Journal 94, 1222-1233. Ji, L., Gallo, K., 2006. An Agreement Coefficient for image comparison. Photogrammetric Engineering & Remote Sensing 72(7), 823-833.

Examples

Run this code
data(Metdata)
B <- 0.11
tmax <- Metdata$meteo$TEMP_MAX
tmin <- Metdata$meteo$TEMP_MIN
days <- Metdata$meteo$DAY
lat <- Metdata$LATITUDE
solrad_measured <- Metdata$meteo$RAD_MEA
solrad_BC <- bc(days, lat, extraT=NULL, BCb=B, tmax, tmin, BCc=2, tal=0.76) 

modeval(solrad_BC,solrad_measured)
modeval(solrad_BC,solrad_measured,stat="EF")

Run the code above in your browser using DataLab