Conversation

I'm trying to check for the average sex rate in a relationship, grouped by how poly they are, controlling for age. Using chatgpt, I have this code. It's giving me a reasonable-looking result, and I think I did it right, but I'd like some human eyeballs to verify this is not dum
Image
23
159
Replying to
Statistician here - looks right to me. You could try allow poly and selfage to interact in the model - using "sexrate ~ poly * selfage" will get you that.
2
34
Replying to
A generalized linear model is a superset of OLS regression - OLS regression has assumptions that your y is normally distributed. With a rate variable you are bounded at the lower end by 0, these types of variables can be highly nonnormal and OLS may perform poorly.
1
1