Hi, I am trying to work out whether to use xtmixed or xtgee. I have longitudinal data which involves children seen at fixed time points between 18months and 60 months. Children are classified as having a certain level manual ability (macs) or gross motor ability (gmfcs). The outcome variable is selfcare. What I am really interested in is how do children selfcare skills develop with time, according to macs level. From reading, it seems that I could use either xtmixed or xtgee. If I used xt mixed, would it be correct to use the following ? mixed scaleselfcare appt_type || macs: || patientid: appt_type (is this the correct order of grouping - that macs is the top group ? - ) If I used xtgee, is this correct ? xi: xtgee scaleselfcare i.appt_type, i( patientid ) t( appt_type ) corr(unstructured) link(identity) family(gauss) Example generated by -dataex-. To install: ssc install dataex clear input int patientid byte appt_type int macs byte gmfcs_t 1389 30 1 1 1389 60 1 1 1389 48 1 1 1389 24 1 1 1389 36 2 1 1391 30 2 1 1391 48 2 1 1391 36 2 1 1391 24 2 1 1391 60 2 1 1396 48 1 1 1396 60 1 1 1396 24 2 1 1396 30 2 1 1396 36 2 1 1414 60 1 1 1414 36 1 1 1414 48 1 2 1414 30 2 1 1427 36 1 1 end label values appt_type appt_type_labels label def appt_type_labels 24 "24 months", modify label def appt_type_labels 30 "30 months", modify label def appt_type_labels 36 "36 months", modify label def appt_type_labels 48 "48 months", modify label def appt_type_labels 60 "60 months", modify label values macs macs_labels label def macs_labels 1 "MACS 1", modify label def macs_labels 2 "MACS 2", modify
------------------ copy up to and including the previous line --
Kind regards,
Andrea Burgess
Comment