Dear all,
q5_ is an ordinal variable of 1-5 which has been measured for each ptid
pre-procedure pre_post =1 and post-procedure pre_post=2 for each procedure =1 (treatment) and procedure=0 (control)
I would like to plot the probabilities of response to q5 pre and post procedure for both treatment and control
Here is what I used
Perhaps, is there a way I can relabel the legend? Or if you could suggest any modifications to the code ?
Many thanks
q5_ is an ordinal variable of 1-5 which has been measured for each ptid
pre-procedure pre_post =1 and post-procedure pre_post=2 for each procedure =1 (treatment) and procedure=0 (control)
I would like to plot the probabilities of response to q5 pre and post procedure for both treatment and control
Here is what I used
Code:
meologit q5_ i.procedure_t_c##pre_postno ||ptid:,vce(robust) or level(95) marginsplot, by(procedure_t_c) //This produced two graphs for procedure_t_c =1 and procedure_t_c=0 at the pre_post=1 and pre_post=2 (which is what I want) but with lots of lines (of course since q_5 is an ordinal variable of 1-5) However, I'm unable to tell which one belongs to q5_ =1 etc
Many thanks
Comment