Page 1 of 1
How to merge 3 dummy variables
Posted: Wed Mar 11, 2020 10:54 am
by GonzaloMR
Hi there, I am currently working on panel data with 12 different panels. I have 3 independent dummy variables, which show a 1 if there is a rating upgrade for a bond, and a 0 if there is no announcement. Each dummy is for a different credit rating agency. How can I merge these dummies so that I have a fourth dummy variable made up of these 3?
thank you in advance for your help
Re: How to merge 3 dummy variables
Posted: Wed Mar 11, 2020 10:56 am
by startz
How are you planning on defining the dummy? If any of the ratings is 1? If all?
Re: How to merge 3 dummy variables
Posted: Wed Mar 11, 2020 11:01 am
by GonzaloMR
Hi, i was thinking if any of the 3 has a one, that shows in the merged one. is that possible? thanks
Re: How to merge 3 dummy variables
Posted: Wed Mar 11, 2020 11:13 am
by startz
Code: Select all
series dummyAll = dummy1 or dummy 2 or dummy3
Re: How to merge 3 dummy variables
Posted: Wed Mar 11, 2020 12:18 pm
by GonzaloMR
Thank you very much!