I'm using the compana
function in Adehabitat
package to determine if used habitat is selected for from available habitat.
One of the habitat classes I'm using in my available matrix has several very low values (ie. 0.000015000
) or zero values. Therefore, when I replace any zero values in the R code with a larger value (0.001
), it affects my results. When I replace that larger value with other values (ie. 0.0001
and 0.00000001
), to confirm the consistency of the results, my results are not consistent.
Is there an appropriate small value number I should be using?
I've tried using multiple different small values to replace the zero values in the matrix. Smaller numbers than 0.001
do not the top results (working with 9 different habitat classes), but continuously increasing the smaller values changes values of other habitat classes.
bars<-compana(used, avail, test = c("randomisation"),
rnv = 0.01, nrep = 1000, alpha = 0.1)
Changing the rnv
value from 0.01
--> 0.0001
alters results, and continues to alter with smaller numbers
I expect to see consistent results with most or all rnv small number values.