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

Bug in species tolerances in tolerance.cca #216

Closed
gavinsimpson opened this issue Nov 15, 2016 · 4 comments
Closed

Bug in species tolerances in tolerance.cca #216

gavinsimpson opened this issue Nov 15, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@gavinsimpson
Copy link
Contributor

The species tolerances in tolerance.cca are incorrect as the code is only indexing the second axis.

@gavinsimpson gavinsimpson self-assigned this Nov 15, 2016
@jarioksa jarioksa added this to the 2.4-2 milestone Nov 30, 2016
@gavinsimpson
Copy link
Contributor Author

Commit 500a2e2 fixes the main problem here.

There is an outstanding issue though; the Canoco 5 user manual claims Canoco 5 uses N2 to debias the the species tolerance but not the sample heterogeneity, because it only computes these statistics using scores scaled to show response variable distances (basically our scaling = 2 IIRC). This suggests that to match Canoco we need to either

  • lock down the interface to not allow the user choosing other scalings or,
  • we need to remove the useN2 argument and turn it on/off as needed depending on the scaling types, or
  • we note the issue in the Rd page and let users shoot themselves in the foot if they're not careful?

Thoughts @jarioksa?

I could ask Petr/Cajo for more detail on what Canoco does - I doubt the output from Canoco will be helpful in tracking this down as often bias correction is small and the outputs in v5 are rounded to 4dp.

gavinsimpson added a commit that referenced this issue Jan 3, 2017
@gavinsimpson
Copy link
Contributor Author

I have now cherry-picked the relevant commits into the cran-2.4. We can wait to fix the the remaining issue if you want to get 2.4-2 out to CRAN.

@jarioksa
Copy link
Contributor

jarioksa commented Jan 3, 2017

Fine! I'll start wrapping up vegan 2.4-2 for the release. Do you want to write a NEWS entry for 2.4-2?

gavinsimpson added a commit that referenced this issue Jan 6, 2017
@gavinsimpson
Copy link
Contributor Author

@jarioksa Done in bb8525a

@jarioksa jarioksa closed this as completed Jan 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants