Description Usage Arguments Value Author(s) See Also Examples
This function is a wrapper for the function gof
in the package hydroGOF.
It computes several Goodness of Fit statistics for each station. The output of this function may be
used on its own, or to annotate a hydrograph.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
MESHvals |
Required. A data frame of output from a MESH run, as produced by |
stationNames |
Optional. A vector of strings holding station names. If specified, the station names will be used in the returned data frame, otherwise the MESH station numbers will be used. |
calStart |
Optional. The start date of the calibration period. Must be a string in the format yyyy-mm-dd. If specified, values on and after this date will be designated as the |
calEnd |
Optional. The start date of the calibration period. Must be a string in the format yyyy-mm-dd. If specified, values on and after this date will be designated as the |
removeMissing |
Required. Should rows with missing values be removed before statistics are calculted? Default is |
doSpearman |
Optional. Should Spearman correlation be computed? Default is |
doPBFDC |
Optional. Should percent bias of slope of the midsegment of the FDC be computed? Default is |
doLogNSE |
Optional. Should the NSE of the log-transformed flows be calculated?
Default is |
epsilon |
Optional. Value to be added to flows when calculating LogNSE, to prevent calculating the log of zero. The default is Pushpalatha2012, which is 1 percent of the mean observed values. A number may aslo be specified. |
digits |
Optional. The number of decimal places for rounding goodness of fit statistics. If |
j |
Optional. Argument passed to the |
norm |
Optional. Argument passed to the |
s |
Optional. Argument passed to the |
method |
Optional. Argument passed to the |
lQ.thr |
Optional. Argument passed to the |
hQ.thr |
Optional. Argument passed to the |
Returns a data frame with the following variables: #'
station name or number
Mean Error
Mean Absolute Error
Mean Squared Error
Root Mean Square Error
Normalized Root Mean Square Error ( -100% <= nrms <= 100% )
Percent Bias
PBIAS in the slope of the midsegment of the Flow Duration Curve, if selected
Ratio of RMSE to the Standard Deviation of the Observations, RSR = rms / sd(obs). ( 0 <= RSR <= +Inf )
Ratio of Standard Deviations, rSD = sd(sim) / sd(obs)
Nash-Sutcliffe Efficiency ( -Inf <= NSE <= 1 )
Modified Nash-Sutcliffe Efficiency
Relative Nash-Sutcliffe Efficiency
Index of Agreement ( 0 <= d <= 1 )
Modified Index of Agreement
Relative Index of Agreement
Persistence Index ( 0 <= PI <= 1 )
Pearson Correlation coefficient ( -1 <= r <= 1 )
Spearman Correlation coefficient ( -1 <= r.Spearman <= 1 ), if selected
Coefficient of Determination ( 0 <= R2 <= 1 ).
Gives the proportion of the variance of one variable that is predictable from the other variable
R2 multiplied by the coefficient of the regression line between sim
and obs
( 0 <= bR2 #' <= 1 )
Kling-Gupta efficiency between sim
and obs
( 0 <= KGE <= 1 )
Volumetric efficiency between sim
and obs
( -Inf <= VE <= 1)
NSE of log-transformed flows, if selected
If the calibration period is specified, then statistics will be computed separately for the Calibration and Validation periods. The period names and dates will be specified in additional columns.
Kevin Shook
1 2 3 4 | stats <- hydroStats(MESH_streamflows)
stats$NSE
periodStats <- hydroStats(MESH_streamflows, calEnd = "2010-01-01")
periodStats[,1:7]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.