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: RE: Creating / generating Industry level time dummy variables


From   Prakash Singh <prakashbhu@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Creating / generating Industry level time dummy variables
Date   Mon, 31 Dec 2012 20:30:28 +0530

Ben I think one could use lname in the main command it self to label
the dummies.

Please correct me if I am wrong.


regards
prakash

On Mon, Dec 31, 2012 at 8:20 PM, Ben Hoen <bhoen@lbl.gov> wrote:
> You might try:
>
> egen industrytimegroupvar=group(industry_dummy_variables
> time_dummy_variables)
> dummieslab industrytimegroupvar
>
> dummieslab is available via SSC
>
> Ben Hoen
> LBNL
> Office: 845-758-1896
> Cell: 718-812-7589
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Surender Komera
> Sent: Monday, December 31, 2012 12:41 AM
> To: statalist
> Subject: st: Creating / generating Industry level time dummy variables
>
> Hi there,
> In my panel dataset (unbalanced) i have industry dummy variables (i1
> to i28) and time dummy variables (d1 to d22). Now i am trying to
> generate industry level time dummy variables (i.e., multiplying each
> i1 with d1 to d22). It will be really great if any of you can suggest
> some looping structure to generate these variables.
> Thanks
> Surender
> *
> *   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/
*
*   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