Hi all,
I am trying to generate a group=1 if an ID starts with a certain letter/number. Do you have any idea how to do this?
Thanks!
Lindsey
Related Posts with Generate a group if an ID starts with an A
Pseudo R squared for a Population-averaged ModelHi Statalisters, I am a novice user in Stata. I'm working with Stata.14 and Windows 7. I'm working…
Loop by variable nameHi, I would like to create average variables which are the average of the last three years. For exa…
Random Effects with Full Information Maximum LikelihoodHello Statalist Users, I am trying to run a random-effects model with full information maximum like…
query on creating dummy variableBelow is my data. "residuals" are all the negative numbers and I created another variable "dummy" wh…
Harmonizing cross-sections along the time dimensionI have the following problem: I have a data set with a panel structure and I want to estimate a regr…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a group if an ID starts with an A
Post a Comment