I Dont know which analysis i should run

I am trying to work on the data of my master thesis. I have to perform statistic analysis but i dont know if i should use on R lm glm or lme.
I have 58 sample points each has two value: altitude and diversity index related to habitat heterogeneity. What I sample are different insects and I have two values: sp = species (total number of different species for each sample point) and ab = abundance (total number of insects for each sample point) the value are the sum of 5 different sampling each sampling has been conducted on a different months. what i want to answer is: are the species richness and the abundance affected by the altitude or the habitat heterogeneity? which is the best analysis to perform? and why?
i have already script in R for all the test I just don't know which is the correct one to perform

thank you for your help.



TS Contributor
So maybe you should post this into the "R" subforum, or into the "Statistics" subforum?

This here is rather for the introduction of new members. Welcome, by the way.

With kind regards

Last edited: