Dear Stata User
I have been trying to do simple linear regression analysis, on the relationship between two variables education(educ) and father education(paeduc), when calcuate predicted mean using margins command it work, but when I try graphing predicted means using the marginsplot command it doesn't work it give me an error message "unrecognized command marginsplot" please an help or suggestion, I am using stata version 12. below is my code.
regress educ paeduc
margins, at (paeduc=(0 (4) 20)) vsquish
marginsplot
I have been trying to do simple linear regression analysis, on the relationship between two variables education(educ) and father education(paeduc), when calcuate predicted mean using margins command it work, but when I try graphing predicted means using the marginsplot command it doesn't work it give me an error message "unrecognized command marginsplot" please an help or suggestion, I am using stata version 12. below is my code.
regress educ paeduc
margins, at (paeduc=(0 (4) 20)) vsquish
marginsplot