I have a sample dataset where individuals were randomized into a clinic and given placebo or drug. The outcome is binary, whether their symptoms reduced or not after being given the drug or placebo. Symptom is 1 = Yes, 0= No and drug is 1= drug and 0=placebo. There are five different clinic, agegroup is 1=younger, 2=middle, 3=older, and sex is 1=male, 2=female. I’m trying to run a multilevel logit model with agegroup and sex as covariates.
Code:
clear input int(symptom drug clinic agegroup sex) 1 1 2 3 1 1 0 1 2 1 1 0 5 1 2 0 0 3 1 1 0 1 4 3 2 1 1 1 2 1 0 1 2 2 2 1 0 4 3 2 0 0 3 1 1
Comment