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
Storing no of observations in regressions performed using a loopHi, I'm running regressions in a loop and I'm able to store the coefficients and also other correspo…
repeated time values within multidimensional formHello all, I'm new in Stata...I have multıdımensonal data form as below.. I want to test autocorelat…
How to obtain Wald chi-square from running logistic regressions?Hello statalists, I was an SPSS user and switched to STATA a couple years ago. I have a question ab…
weak instrumentshello, I estimate a model with the command ivregress 2sls. I have two endogenous variables. Can I co…
Problem Collapsing DataHello All, I have a panel dataset with 28 years and several U.S. states. Currently, I am trying to …
Subscribe to:
Post Comments (Atom)
0 Response to collapse or Roger Newman's xcollapse with string variables
Post a Comment