Hello Stata folks
I have been logging data on how politicians vote inside of parliament. The id the the name of that person. The L colomns stand for the legislation number. So L1 equals legislation number 1 and what that person voted. There are 5 options:" Fraværende" (absent), "For" (for), "Imod" (against), "Hverken for eller imod" (Neither for or against), or missing data (coded as .)
I want to know how many times each politician (so the specific person/politician) voted "For" "Imod" "Hverken for eller imod" "Fraværende" and the total amount of times they voted. What is the easiest way to do this?
I tried with egen and contracts commands, but I didn't really get anywhere. I looked for solutions online and on Youtube, but didn't find any workable solutions. Any ideas?

Thanks in advance!
/Jacob
I have been logging data on how politicians vote inside of parliament. The id the the name of that person. The L colomns stand for the legislation number. So L1 equals legislation number 1 and what that person voted. There are 5 options:" Fraværende" (absent), "For" (for), "Imod" (against), "Hverken for eller imod" (Neither for or against), or missing data (coded as .)
I want to know how many times each politician (so the specific person/politician) voted "For" "Imod" "Hverken for eller imod" "Fraværende" and the total amount of times they voted. What is the easiest way to do this?
I tried with egen and contracts commands, but I didn't really get anywhere. I looked for solutions online and on Youtube, but didn't find any workable solutions. Any ideas?
Thanks in advance!
/Jacob
Comment