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
Correlation plotHello, I am working with panel data and I can't figure out how to do the correlation plot of the co…
Stacked bar plotHello everyone, I am trying to do a horizontally stacked car plot with two over options. The main o…
Sorting and reshaping: can't get the right orderHi everybody, I'm so sorry to bother you. I have the following dataset: ID ammission_date dismissio…
Where do scatterplots come in when analyzing the interactions between categorical variables?For this paper I'm working on, I was advised to include a scatterplot for the incomes of workers. I …
How to add this highlighted block diagram on the basis of the panel data line diagramArray How to add this highlighted block diagram on the basis of the line diagram, Maybe I can use t…
Subscribe to:
Post Comments (Atom)
0 Response to collapse or Roger Newman's xcollapse with string variables
Post a Comment