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]

st: Shuffling variables in a structured way


From   Emile Locque <[email protected]>
To   Statalist <[email protected]>
Subject   st: Shuffling variables in a structured way
Date   Wed, 1 Jun 2011 13:30:24 +0100 (BST)

Dear Statalist,

I have a problem with regard to randomly shuffling variables.

My panel dataset consists of a number of time variant firm-specific variables and a number of executive dummies.
This means that each dummy has a few values of 1 at, at least 2, different firms.
I would like to randomize these executive firm pairings such that the number of years an executive is linked to a firm remains the same across the new sample but such that the firm he is appointed to is not the original firm.
E.g. I would like a manager that works at 3 firms for 3 years each to be paired up with 3 different firms for 3 years each.
Apart from the command shufflevar with the option joint I did not find a command that will be of any assistance.
The shufflevar command, however, does not keep my number of executive years per firm constant.

I am grateful for any help you can provide me with.

With kind regards,

Emile

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index