I guess you are on the right track, but I am not familiar with
your data and study site and, so I can't be sure. I can be sure
that your terminology is not quite right. You can't use the
numbers in your last row study site
as expected counts
because they are estimated probabilities adding to $1.$
One-category chi-squared test in R. In the R procedure chisq.test
, there is provision for a parameter p
of probabilities against
which counts x
are to be compared.
Not enough data for Species 1. So if I guess correctly what you have done to get the vector
study.site
, and if the counts in species.
are indeed not
randomly distributed, I might expect chisq.test
to reject.
However, there is a difficulty. You have only 158 specimens
in Species 1, with none at all in many communities.
Combine communities or species? A common remedy for such sparse data is to combine categories (communities). If some communities are adjacent, then it might make sense to combine them. You might also consider whether it is appropriate to combine counts for several species, especially of some species are similar to others.
Simulated P-value for sparse data. Another remedy, for the implementation of chisq.test
in R,
is to let let the program simulate a P-value, but we still don't
get a rejection with simulation.
Somewhat better results with higher counts. Trying again for Species 6, which has more specimens. This time we reject at at the 10% level, not at the 5% level.