Skip to content

Is there a function for comparing a modeled timeseries to the measured one?

3 messages · Jan Hackenberg, Aman Verma, Mauricio Zambrano-Bigiarini

#
Hi Jan,

In general, R-squared can be calculated as the square of the correlation coefficient.

However, read here to understand what R-squared means in this case:
http://en.wikipedia.org/wiki/R-squared#As_squared_correlation_coefficient

aman

-----Original Message-----
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Jan Hackenberg
Sent: March 9, 2011 11:50 AM
To: r-sig-geo at stat.math.ethz.ch
Subject: [R-sig-Geo] Is there a function for comparing a modeled timeseries to the measured one?

Dear R - Users
I have 2 timeseries, one measured and one is modeled. The only function to
compare them  i know is cor(model,measured). Is there perhaps another
function to produce the r squared, to prove that my model is well fit?
Thanks for your time
Jan


_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
6 days later
#
You may have a look to the 'gof' and 'ggof' functions included in the
hydroGOF package:

http://cran.r-project.org/web/packages/hydroGOF/index.html

which implement  several numerical and graphical goodness-of-?t
measures between observed and simulated values.

Kinds,

Mauricio