Replies: 2 comments 3 replies
-
Just bumping this to see if anyone had any feedback on this. |
Beta Was this translation helpful? Give feedback.
-
Just saw this! Okay, so t.test() does a t-test, obviously, but glm() is essentially running a linear regression (glm = generalized linear model). If you want to incorporate random effects, you can use glmer(). My understanding, which could be way off, is that when you've got one treatment with levels (say, looking at qPCR results with control and elevated-temp. mussels), you want to use a t-test. If you've got a continuous variable (say, taking samples from intertidal mussels throughout the summer and comparing ambient water temperature to qPCR results), a linear model would be better. Linear models are also more flexible - you can add in several predictors, add random effects, and so on! |
Beta Was this translation helpful? Give feedback.
-
@sr320 and I were playing with some analysis today and compared these two functions. Similar, but different, results. Conclusions about the data wouldn't have been affected, but we're curious what the difference is between the two and why you use one instead of the other.
Anyone have any thoughts/opinions on this?
Beta Was this translation helpful? Give feedback.
All reactions