Dear all,
I am using Stata 16, on mac. I must collapse my data to region-by-year level. The problem is that the variable region is a string variable and 14 regions are included under this variable such as, Western Europe, North America, Australia and New Zealand. Under the year variable there are three years: 2015, 2016, and 2017.
I tried using collapse region, by(year), which resulted in the error message
type mismatch
r(109)
I would greatly appreciate it if someone could help me fix my command.
Thank you in advance for your help
Jason Browen
Related Posts with Problem with String Variable in Collapse Command
Twoway contour for significant average marginal effectsHi, I run this four-way interaction model in Stata 14: xtreg Y c.X1##c.X2##c.X3##X4 Controls i.cou…
Mann-whiteny U test representationHello I was wondering where to add the asterisk on a bar graph representing proportions of a three-l…
How to forecast counterfactual in ARIMAI am wondering if anyone could suggest codes on how to forecast the counterfactuals in an ARIMA mode…
Multiple McNemar TestHello all, I am doing 10 McNemar test for comparing matched data. Example: mcci 192 0 1 0 1. Just li…
matrix recursive elementHi, I want to run this code Code: local filas = 300 local columnas = 1 matrix A = J(`filas',`colum…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with String Variable in Collapse Command
Post a Comment