Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRTDS Enhancements #251

Open
jds485 opened this issue Mar 7, 2020 · 0 comments
Open

WRTDS Enhancements #251

jds485 opened this issue Mar 7, 2020 · 0 comments

Comments

@jds485
Copy link

jds485 commented Mar 7, 2020

I've modified several of the EGRET functions related to WRTDS. Some of these enhancements may be useful to others. They include:

  1. new function parameters to specify the resolution of the surfaces (number of time steps and flow steps).
  2. option to include a quadratic term for log flow in the WRTDS survival regression.
  3. option to plot surface contours for all of the regression parameters, not only the mean concentration and the model error.
  4. a new function to make predictions from the WRTDS models within the estimation timeperiod, given tables of the parameters, flows, and dates.
  5. a new function to fill in NAs in generated tables by inverse distance interpolation between neighboring cells in the table.

The changed functions include:
modelEstimation
estSurfaces
surfaceIndex
runSurvReg
run_WRTDS
estCrossVal
plotContours

I tracked all changes on my local machine in git, but I'm not sure how to share the git history with you. It may be simpler for you to do a git diff for each function to see what changes I made. I've attached the file of modified functions as a .txt file (GitHub Issues doesn't support .R files, so I can send the R script by email if you ask). Let me know if you have any questions.

WRTDS_ModifiedFunctions.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant