For code below
xtlogit drops 132 observations because for those observations outcomes do not vary by patient. However for xtreg nothing is dropped. Can anyone explain why those 132 observations are not also dropped when one considers xtreg
PS: This code is written using stata's built in directory so it should be easy to replicate
sysuse bplong, clear
gen great_median = bp > 150
xtset patient
xtlogit great_median i.when i.sex, fe // drops 132 observations
xtreg great_median i.when i.sex, fe // nothing drops
Comment