Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: re: Automating coefficient plots.


From   andreas nordset <[email protected]>
To   [email protected]
Subject   Re: st: re: Automating coefficient plots.
Date   Sun, 21 Nov 2010 19:34:31 -0800

Thanks!,

Andreas


"excel" = Microsoft Excel spreadsheet.


On Sun, Nov 21, 2010 at 10:45 AM, Christopher Baum <[email protected]> wrote:
> <>
> Andreas said
>
> I am studying the pattern of income for households around unemployment
> spell starts.
>
> The dataset is a balanced panel of households from 1995-2007, and I
> use households that are first time hit by unemployment in years
> 1999-2003. That allows me to track them 4 years prior to, and 4 years
> after unemployment incident. In the analysis I generate a variable
> called "relative_year", that tells me how far away from the
> unemployment spell start the observation is.
> E.g. relative_year == 3, means we observe the household in year 3
> after unemployment spell start.
>
> I want to plot the average income development from relative_year -4 to
> relative_year +4, net of calendar year fixed effects
>
> So far I have done this by running the following:
> reg income relative_year-dummies calendar-year-dummies
> , then exporting the results to excel where i plot the
> relative_year-dummies plus the constant to get the plot.
>
> Is there a way to automate this procedure?
>
>
> -----------------------
> webuse grunfeld, clear
> qui reg invest i.year i.company
> margins i.year, post
> // Roger Newson's parmest from SSC
> parmest, saving(yeareff, replace)
> use yeareff, clear
> // Kit Baum's tsmktim from SSC
> tsmktim year, start(1935)
> tsline estimate || tsrline min95 max95, legend(col(1)) scheme(s2mono)
> -------------------------
>
> PS> What is "excel"?
>
> Kit
>
> Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
>                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
>   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html
>
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index