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: xi i. year dummy in regression only for certain years


From   Barbara Engels <engels.ba@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xi i. year dummy in regression only for certain years
Date   Sun, 5 May 2013 11:04:48 +0200

Jeremy,

I have Stata 10.1, which does not include fvvarlist and doesn't allow for a command like you suggested. Also, I want to avoid having to redefine the years included (here: 98/103) every time that I change the time period considered.
Do you have any suggestions for a solution in Stata 10.1?

On 04.05.2013, at 20:08, Jeremy Wells wrote:

> Barbara,
> 
> Look at -help fvvarlist-.
> 
> If 1910 is your first year, then 2006 would be the 97th value, and I will omit that year as your base reference,  so I believe your command would look like the following:
> 
> xi: reg dep indep i(98/103).year if (year>2006 & year<=2011)
> 
> HTH,
> 
> Jeremy Wells
> Ph.D. Student
> LSU Dept. of Poli. Sci.
> 
> 
> 
> 
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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