Aim: To create a graph similar to this. Where the graph of course only has the blue line. The x axis is the age
I then want to repeat this for procedure==0 and overlay both graphs onto each other to get 2 lines instead.
score, age are continuous variables
//This returns an error: previous command was not margins
How can I modify this code for it to work pls?

I then want to repeat this for procedure==0 and overlay both graphs onto each other to get 2 lines instead.
score, age are continuous variables
Code:
regress score age i.asa if procedure==1 margins age, at(age=50(10)100)
How can I modify this code for it to work pls?
Comment