-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Dear,
I wanted to calculate pairwise similarities for a species x sites matrix using the function SimilarityMult.
Calculating this for q = 1 gave, for some communities, similarity values higher than 1.
On Github, I saw that the package was recently corrected, so I reinstalled it.
The problem is still not solved, and even worse, for some matrices I now get errors when calculating similarities at q1:
Error in rmultinom(1, n[2], p_hat[, 2]) : non-positive probability
In addition: Warning message:
In w * (1 - X/n)^n : longer object length is not a multiple of shorter object length
I tried to google this error, but I can’t seem to find what went wrong.
Again, I did not get this error with the previous version of SpadeR.
Could you please help me solving these two issues?
I included the data I used: q1.txt (gives similarities at q1 bigger than 1) and Error.txt (gives the abovementioned error at q1).
Thank you in advance.
Error.txt
q1.txt
Frederik Van de Perre