Hello there, I'm trying to insert 2 lowess graphs for 2 procedures on the same graph
I've managed to do them separately for each procedure, just wanted to see how they look all together on the same graph plot
I've used the code below, however stata is telling me I'm missing a )
Can you spot where?
If I may be cheeky, in order to create dashed lines for procedure ==0 do I insert the code after the -legend- ?
Code:
twoway(lowess postop_score age if procedure ==0) (lowess preop age if procedure==0), ytitle(“6 months score”) xtitle(“age at surgery”) (lowess postop_score age if procedure==1) (lowess preop age if procedure==1), ytitle(“6 months score”) xtitle(“age at surgery”) graphregion(color(white)) xlabel(30[10]100) legend(order(1 “Post op 6month score lap” 2 “Preop score lap” 3 “Post op 6 month robotic” 4 “Preop score robotic”) ring(0) cols(1) pos(10))

Comment