Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nabin Kafle <nkafle89@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Dummy Variable |
Date | Sat, 8 Jun 2013 11:14:31 -0500 |
I have the following problem. I run a regression with a dummy variable. The result are displayed. Now I need to create a column of the constant for all the regressors. Example regr y x1 x2 x3 i.d It gives the values (suppose) x1= 2 x2= 3 x3= 4 _const= 0.218 d1= 1 d2= 2 d3= 3 Now I need to create a column with the values of constant term of the regression for all the dummy which will be similar to the following 0.218 1.218 2.218 3.218 Nabin Kafle * * 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/