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

Calculate lag from residuals #12

Open
rknx opened this issue May 14, 2020 · 3 comments
Open

Calculate lag from residuals #12

rknx opened this issue May 14, 2020 · 3 comments

Comments

@rknx
Copy link
Owner

rknx commented May 14, 2020

  1. Fit presence ~ week + dis + gene + gene:dis + gene:week + dir for field data.
  2. Get residuals.
  3. Merge residuals to each env dataframe and calculate fit.
  4. Determine best lag period.
@rknx
Copy link
Owner Author

rknx commented May 14, 2020

Also calculate TSS from external cross-validation

  • Use GLM, not GLMM

@rknx
Copy link
Owner Author

rknx commented May 15, 2020

Also calculate TSS from external cross-validation

  • Use GLM, not GLMM

Implemented

@rknx
Copy link
Owner Author

rknx commented May 15, 2020

  1. Fit presence ~ week + dis + gene + gene:dis + gene:week + dir for field data.
  2. Get residuals.
  3. Merge residuals to each env dataframe and calculate fit.
  4. Determine best lag period.

need to figure how how to calculate and merge residuals ->

  • NA can be a problem
  • Grab model frame and merge residuals. Use model frame for validation

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