Questions tagged [hydrogof]
6 questions
11
votes
2 answers
How to perform RMSE with missing values?
I have a huge dataset with 679 rows and 16 columns with 30 % of missing values. So I decided to impute this missing values with the function impute.knn from the package impute and I got a dataset with 679 rows and 16 columns but without the missing…

Telma_7919
- 209
- 1
- 6
- 9
4
votes
1 answer
Nesting apply in lapply to loop over columns of a list of matrices
I have a list of matrices, and I'm trying to apply a function to each column of each of the matrices. The natural way to do that, I would think, is to nest apply in an lapply, but when I do that, it gives me an error:
library(hydroGOF) # for the…

Jake Fisher
- 3,220
- 3
- 26
- 39
2
votes
2 answers
How to calculate RMSE on different time scale
I have 18 years daily simulated and observed data and i can calculate the RMSE using this code;
sqrt( mean( (df$simulated-df$observed)^2 , na.rm = TRUE ) )
But i have to calculate RMSE on different time series whole time period, Yearly, monthly,…

irfan
- 45
- 10
0
votes
0 answers
Issues while executing gof fuction of hydroGOF package
I received this error while running the gof function of the hydroGOF package in R. My data frames correspond to observed and simulated measurements for precipitation. Both have the same dimensions and both are free of NA values. I think it may be…
0
votes
1 answer
How to get Nash-Sutcliffe efficiency by group using hydroGOF package?
I am trying to get NSE values grouped by a variable. I tried something similar to:
library(dplyr)
library(hydroGOF)
mtcars %>% group_by(cyl) %>%
NSE(wt,drat)
Why isn't it working? It doesn't find "wt". Thank you.

Matt_4
- 147
- 1
- 12
-1
votes
2 answers
How can I use R to see the error metrics in HydroGOF?
under the two conditions of "Simulated" and "Measured" (See the image),
I want to calculate some error metrics such as Nash-Sutcliffe efficiency (NSE) or root mean square error (RMSE), but I don't know how to code the command.
There are 728…

Chouette
- 153
- 7