Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: question on graphing


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: question on graphing
Date   Mon, 4 Apr 2011 13:10:29 -0400

Susan,

I think you can accomplish this with:

(1) -margins- to get the profiles. Use the at option for the age variable.
(2) -parmest- or -stastby- to save the profiles as a dataset
(3) Plot the results using -eclplot-

DVM


On Mon, Apr 4, 2011 at 12:54 PM, Averett, Susan L
<averetts@lafayette.edu> wrote:
> Hi, I am running a regression with logearnings as the dependent variable and age in  years, a female dummy variable and a dummy equal to 1 if the individual has a college degree. I would like to graph my age/earnings profile in Stata...i.e. I'd like to graph the relationship between predicted logearnings and age holding the other variables constant but I cannot figure out how to do this. I'd also then like to plot the lines separately for men and women on the same graph.
> Any suggestions?
>
> Here is my regression:
>
> regress lahe age female bachelor
>
> Susan Averett
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index