Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str8 state str11 county int year str9 office str23 candidate str29 party long votes byte special "Delaware" "New Castle" 2016 "President" "Clinton, Hillary" "Democrat" 162919 0 "Delaware" "New Castle" 2016 "President" "Trump, Donald" "Republican" 85525 0 "Delaware" "New Castle" 2016 "President" "Johnson, Gary" "Libertarian" 9107 0 "Delaware" "New Castle" 2016 "President" "Stein, Jill" "Green" 3956 0 "Delaware" "New Castle" 2016 "President" "McMullin, Evan" "Independent" 514 0 "Delaware" "New Castle" 2016 "President" "other" "other" 370 0 "Delaware" "Kent" 2016 "President" "Clinton, Hillary" "Democrat" 33351 0 "Delaware" "Kent" 2016 "President" "Trump, Donald" "Republican" 36991 0 "Delaware" "Kent" 2016 "President" "Johnson, Gary" "Libertarian" 2876 0 "Delaware" "Kent" 2016 "President" "Stein, Jill" "Green" 104 0 "Delaware" "Kent" 2016 "President" "McMullin, Evan" "Independent" 109 0 "Delaware" "Kent" 2016 "President" "other" "other" 229 0 "Delaware" "Sussex" 2016 "President" "Clinton, Hillary" "Democrat" 39333 0 "Delaware" "Sussex" 2016 "President" "Trump, Donald" "Republican" 62611 0 "Delaware" "Sussex" 2016 "President" "Johnson, Gary" "Libertarian" 2774 0 "Delaware" "Sussex" 2016 "President" "Stein, Jill" "Green" 1105 0 "Delaware" "Sussex" 2016 "President" "McMullin, Evan" "Independent" 83 0 "Delaware" "Sussex" 2016 "President" "other" "other" 102 0 "Delaware" "(statewide)" 2016 "President" "Clinton, Hillary" "Democrat" 235603 0 "Delaware" "(statewide)" 2016 "President" "Trump, Donald" "Republican" 185127 0 "Delaware" "(statewide)" 2016 "President" "Johnson, Gary" "Libertarian" 14757 0 "Delaware" "(statewide)" 2016 "President" "Stein, Jill" "Green" 6103 0 "Delaware" "(statewide)" 2016 "President" "other" "other" 2224 0
0 Response to How to create groups of observations based on shared characteristics and create variables around that.
Post a Comment