Skip to content

R^2 computation for different periods and different simulation results when adjusting tmin #782

Answered by dbrakenhoff
lauramenezess asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lauramenezess,

The best way to compute an R² for a specific period is to pass the tmin/tmax to ml.stats.rsq(tmin=<tmin>, tmax=<tmax>). You can also do it manually by computing the residuals between tmin/tmax (res = ml.residuals(tmin=<tmin>, tmax=<tmax>)) and passing that to ps.stats.rsq(res=res).

I'm a bit confused why the first value of the simulated head is different to the last value when applying different periods in in Model.plot(). Maybe you can upload your model as zip file (use ml.to_file("model.pas") and zip that file), or you could upload some results pictures of your model, so we can take a look? Pastas models have a warmup period, but this should be sufficiently long that …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by lauramenezess
Comment options

You must be logged in to vote
4 replies
@dbrakenhoff
Comment options

@lauramenezess
Comment options

@dbrakenhoff
Comment options

@lauramenezess
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants