I have data on about 1,650 people, recruited from 12 health clinics, participating in a cluster randomised controlled trial.
Because of the cluster design, I know that I have to do something like:
rather than:
when I am looking at differences between types of individuals in the study.
But what do I do if I want to test for a difference between the clusters? For example, I want to know if the patients at each clinic are of a similar age. Can I just do one of the following?
The F statistic is missing for the model if I try this instead:
Because of the cluster design, I know that I have to do something like:
Code:
regress age i.gender, vce(cluster clinic)
Code:
ttest age, by(gender)
But what do I do if I want to test for a difference between the clusters? For example, I want to know if the patients at each clinic are of a similar age. Can I just do one of the following?
Code:
oneway age clinic, tabulate regress age i.clinic
Code:
regress age i.clinic, vce(cluster clinic)
Comment