Tried help (and the help for xcollapse) but can't get an answer that makes sense to me.
I have three variables for country identifiers: country countrynum and contab. The first is str24, the second is integer, and the third is str3. I have the fist two in another data set but want to include the third by a merge.
But when I type
xcollapse country contab,by(countrynum) saving (gallupcontab,replace) I get:
type mismatch
and I get the same error message for:
collapse country contab,by(countrynum)
Any help would be appreciated.
Related Posts with collapse or Roger Newman's xcollapse with string variables
Coefplot: Increase gap size between subgraphs, decrease font size of subgraph labels, and remove legendIn coefplot, can someone please tell me how to: 1) Increase the gap size between subgraphs (I need t…
Higher bar graphHi there, I have made this code for a nice bar graph: Code: graph bar e45svenstrup e45vodskov e39…
How to equality test for multnomial logit model with two differen groups?Hello everyone, I would like to ask related with equality test in multinomial logit. Here is my two …
Combing dichotomous into oneHello Statalist I have troubles with my data and i hope you can help me My problem is that i have c…
Line graph depicting coefficient results at different levels of interactionDear all, I have the following multilevel model: Code: mixed ep_trust ib1.egalatt##c.gini_SWIID i…
Subscribe to:
Post Comments (Atom)
0 Response to collapse or Roger Newman's xcollapse with string variables
Post a Comment