Dear all,

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)
This gives me what I want but without the names of the poll_sponsors.
poll_sponsr openended close ended
1 5 6
2 2 3
Instead it gives poll_sponsor number. I want names instead. How can we do that?

Thanks.