Bookmark and Share

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


From   "Ben Hoen" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Creating / generating Industry level time dummy variables
Date   Mon, 31 Dec 2012 10:46:34 -0500

I think the lname option of group specifies a name for the group variable value labels.  One still needs to break the categorical variable into its respective dummy variables for each level.  

Instead of the method I listed one could also use:

tab industrytimegroupvar, g(it) //using "it" as an abbreviation for industrytime.  This sill create a dummy for each level but will not store the value labels.

Here is more info:  http://www.stata.com/support/faqs/data-management/creating-dummy-variables/

Cheers,

Ben

Ben Hoen
LBNL
Office: 845-758-1896
Cell: 718-812-7589


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Prakash Singh
Sent: Monday, December 31, 2012 10:00 AM
To: [email protected]
Subject: Re: st: RE: Creating / generating Industry level time dummy variables

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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] 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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index