Hi,
I'm am trying to get the frequency of several dummy variables in one single table on Stata 13. I have the variables (SequenceA SequenceB SequenceC SequenceD SequenceE SequenceF SequenceF SequenceG SequenceH SequenceI SequenceJ SequenceK) that can take a value of 1 or 0, and every row can only have one of these variables with value 1. I'm trying to group them in a way that it counts the total number of times 1 appears (among all of them) and then the percentage of SequenceA from the total and so forth, but all in one table. Additionally, I want to add other columns with means of these sequences, such as Leverage, Cashflows, etc whenever the SequenceA, Sequence B, and so forth take a value of 1. Is that even possible? I have days trying to figure this out. Many thanks for your help.
Regards,
Peter
I'm am trying to get the frequency of several dummy variables in one single table on Stata 13. I have the variables (SequenceA SequenceB SequenceC SequenceD SequenceE SequenceF SequenceF SequenceG SequenceH SequenceI SequenceJ SequenceK) that can take a value of 1 or 0, and every row can only have one of these variables with value 1. I'm trying to group them in a way that it counts the total number of times 1 appears (among all of them) and then the percentage of SequenceA from the total and so forth, but all in one table. Additionally, I want to add other columns with means of these sequences, such as Leverage, Cashflows, etc whenever the SequenceA, Sequence B, and so forth take a value of 1. Is that even possible? I have days trying to figure this out. Many thanks for your help.
Regards,
Peter
Comment