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
Interaction means that you are allowing for the fact that age may have a different effect on sex rate for poly couples than for nonpoly. Maybe age is associated with a decrease in sex for nonpoly couples but age isn't a major factor for poly. Your model doesn't allow for that.
1
38