Hi!
I have the following situation, please look a the picture (in the picture the file is in excel but of course it has been already imported in stata)
I would like to:
Keep just one line for deal (it is easier to keep the line where the are numbers like 3., 4., 5. in the first column) and having in the same row all data regarding the deal subtype, the deal financing and the deal method of payment. Because then this variabile will be transformed in dummy variables
Example:
DEALNUMBER DealsubtypeTO DealsubtypeRB DealsubtypeReccBidOIBR DealfinancingNBF DealfinancingCI DealmethodS DealmethodC
3. 1601045227 Public Takeover Reccomended Bid New bank facilities Capital increase Shares Cash
4. 491851 Public Takeover Reccomended Bid Ostile Intilally became recommended New bank facilities Cash
so then
3. 1601045227 1 1 0 1 1 1 1
4. 491851 1 1 1 1 0 0 1
Thanks a lot!
I have the following situation, please look a the picture (in the picture the file is in excel but of course it has been already imported in stata)
I would like to:
Keep just one line for deal (it is easier to keep the line where the are numbers like 3., 4., 5. in the first column) and having in the same row all data regarding the deal subtype, the deal financing and the deal method of payment. Because then this variabile will be transformed in dummy variables
Example:
DEALNUMBER DealsubtypeTO DealsubtypeRB DealsubtypeReccBidOIBR DealfinancingNBF DealfinancingCI DealmethodS DealmethodC
3. 1601045227 Public Takeover Reccomended Bid New bank facilities Capital increase Shares Cash
4. 491851 Public Takeover Reccomended Bid Ostile Intilally became recommended New bank facilities Cash
so then
3. 1601045227 1 1 0 1 1 1 1
4. 491851 1 1 1 1 0 0 1
Thanks a lot!
Comment