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
Using the LR test to discriminate between a random intercepts and a random slopes multilevel modelHi all. I have Brazilian survey data with political and socio-economic variables. To this dataset, I…
skewed GARCHHello Statalist, I'm a Ph.D student and I'm currently working on my project, basically I'm trying to…
program mimrgns already defined (error occurred while loading MIMRGNS.ado)Hi Statalisters, I have mi data and I want to obtaing ajusted mean and CI after "mi estimate, post:…
Generalized/Staggered DiD w/ state variationHello all, I'm considering running a generalize/staggered differences-in-differences model to analy…
Interpretation OLS residualHi, I don't know how interpret the OLS of residuals. There is my code : Code: *model 4 CD regress …
Subscribe to:
Post Comments (Atom)
0 Response to Problem with String Variable in Collapse Command
Post a Comment