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: BHPS
From
Brendan Halpin <[email protected]>
To
<[email protected]>
Subject
Re: st: RE: BHPS
Date
Mon, 31 Mar 2014 14:01:27 +0100
On Mon, Mar 31 2014, Yasir Zuberi wrote:
> I was also
> wondering if you had any resources which tell you how to add a wave
> dummy variable into my BHPS dataset. I have variables sctype, smoker,
> ncigs, pid,age, wave and cigarettes and now wanted to a dummy variable
> to wave to see how it changes over time.
With the example I sent before, do:
xtreg cigarettes i.sctype age i.wave, i(pid) re
Brendan
--
Brendan Halpin, Head, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F1-002 x 3147
mailto:[email protected] ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress twitter:@ULSociology
*
* 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/