have searched and found similar qs to mine but still confused on how to approach this..
i have data (
dat) of the following form
|favorite veg||group1||group2||Avg IQ||Avg # of Siblings||Year|
Lets say (barring everything that may or may not make sense about the data) I am trying to perform a repeated measures Poisson regression w/ the number of people endorsing a veg in group 1 as my outcome, and avg IQ & # of siblings as a predictors.
is the code below an appropriate way to achieve this? thank you all!!
regress <- glm(group1 ~ `favorite veg`*Year + `Avg IQ` + `Avg # of Siblings`, data = dat, family = "poisson")