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
Generate variable (maybe needs a loop)I have the following data set: Parent Subsidiary Variable Value US UK revenue 10 US FRA revenue 15 …
How to replace the age and exit at a certain ageDear All, Is there a way I can replace all age with the current age+1 till 2040 at one go and also …
Standardization of time in panel data with different treatmentsHi everybody I am working with panel data and investigating how employees experience the transfer f…
Mlabcolor, mlabsize, etc. not changing in scatter plot since Stata updateHello, I have been having a number of issues with my graphics in Stata (16, updated with every new …
How to insert a blank line by group* Example generated by -dataex-. For more info, type help dataex clear input str1 var1 float group "…
Subscribe to:
Post Comments (Atom)
0 Response to collapse or Roger Newman's xcollapse with string variables
Post a Comment