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 on April 23, 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   Jeremy Wells <jwell33@tigers.lsu.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xi i. year dummy in regression only for certain years
Date   Sat, 4 May 2013 13:08:14 -0500

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/


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