I have completed a mouse study and have compared mean pup birth weight among pups born to moms that were in one of four treatment groups using pairwise t-tests as follows:
ttest pup_avg if group==1 | group==3, by(group)
I created a variable that averaged the pups born to a treated mom (pup_avg).
However, I need to account for clustering of pups born to the same mom in the same pregnancy.
Each mom has her own ID (variable = mouse_id) and within each mom's observation are variables for each pup weight (weight1, weight2, weight3, etc).
Any advice on how I can compare mean pup birth weight between two different treatment groups and account for clustering within the same mouse_id?
Thanks so much.
ttest pup_avg if group==1 | group==3, by(group)
I created a variable that averaged the pups born to a treated mom (pup_avg).
However, I need to account for clustering of pups born to the same mom in the same pregnancy.
Each mom has her own ID (variable = mouse_id) and within each mom's observation are variables for each pup weight (weight1, weight2, weight3, etc).
Any advice on how I can compare mean pup birth weight between two different treatment groups and account for clustering within the same mouse_id?
Thanks so much.
Comment