I want to create a frequency table, with frequency of open ended and close ended questions according to poll_sponsor
poll_sponsor - names of poll sponsors; type = type of questions - open ended - 1, close ended - 0.
I want to create a frequency table like this:
poll_sponsr | openended | close ended |
morning consult | 5 | 6 |
economist | 2 | 3 |
I did:
estpost tab poll_sponsor type
esttab, cell(b) eqlabels(, lhs("poll_sponsor")) varwidth(15) unstack nonumber nomtitle collabels(Frequency)
esttab, cell(b) eqlabels(, lhs("poll_sponsor")) varwidth(15) unstack nonumber nomtitle collabels(Frequency)
poll_sponsr | openended | close ended |
1 | 5 | 6 |
2 | 2 | 3 |
Thanks.
0 Response to Frequency table with value labels
Post a Comment