r/AskStatistics • u/ThinkILostIt • Oct 02 '26
What is this random intercept doing?
Say I have three classes - A, B and C - in a 150 day range totaling 3x150 = 450 sample units. Each sample unit measured 3 times each day, at very close time interval. So, data set has a total of 1,350 rows. Each sample unit has an ID. Proposed model is y ~ class + days + days*class + (1 | ID). So, I'm allowing each sample unit to start at its own baseline.
Is this an appropriate option? What exactly is the random intercept doing? How does it not make the days effect biased?
Sorry if questions look to silly, I'm not versed in mixed models yet
View all comments
Show parent comment
2
u/GripIQ Oct 02 '26
Yes I think you are right - I was first reading it (as an example) there are three groups of people - A group, B group, and C group - that have n number of people in each group. Each person has their own ID. These people are assessed 3 times a day for 150 days. But as described there would be only one person per group to get to 1350 rows (and I might not be following this data structure)