Hi, I'm new in logistic analysis.

I have binary outcome (energy...) day 1,2 and 3 (yes/no) for each patient (id). I would like to test whether there are difference between the two groups of patients. Here is the code and some photos to see how I listed up the data ind STATA.
q1: is it the right way to use this model? is there any more simple way to look at the question?


xtmelogit energy_75yn group bmi|| id:

Click image for larger version

Name:	image1.jpg
Views:	4
Size:	444.8 KB
ID:	6011
Click image for larger version

Name:	IMG_3335.jpg
Views:	9
Size:	384.6 KB
ID:	6012