Dear Stata users,

I am using the margins and marginsplot commands to generate wage-experience (graphical) profiles.
Let's keep matters simple and say when I
Code:
regress logwage c.experience##c.experience
, that is logwage on experience and experience^2, and I want predicted logwage on the vertical axis and experience on the horizontal axis, I do the following:
Code:
margins, at(experience=(1(1)40))
marginsplot
Let us now say I want to model experience as fourty categorical variables and then get the predicted logwage values on the vertical axis and experience on the horizontal axis ranging from 1-40:
Code:
regress logwage ib0.experience
.

I am not sure how to program this with the margins and marginsplot command.

I would highly appreciate some help.

Have all a great holiday season and good start into the Year 2020.