Hi All,
I'm trying to drop all groups of a variable with only one observation each and I am having trouble with the code. Basically I'm looking for political parties that have been active across a bunch of elections and need to get rid of the parties that only contested a single election. Unfortunately the party name and code variables do not make it easy to sort and delete them individually.
I'm looking for something like
"drop pty if Freq.==1"
Can anyone help?
Thanks!
I'm trying to drop all groups of a variable with only one observation each and I am having trouble with the code. Basically I'm looking for political parties that have been active across a bunch of elections and need to get rid of the parties that only contested a single election. Unfortunately the party name and code variables do not make it easy to sort and delete them individually.
I'm looking for something like
"drop pty if Freq.==1"
Can anyone help?
Thanks!