Learn R Programming

sirad (version 2.0-2)

modeval: Estimators of the model performance.

Description

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

Usage

modeval(calculated,measured)

Arguments

calculated
Vector of length n of the calculated (modelled) values.
measured
Vector of length n of the reference (measured) values.

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

Details

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

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, BCb=B, tmax, tmin, BCc=2, tal=0.76) 

modeval(solrad_BC,solrad_measured)

Run the code above in your browser using DataLab