I am analyzing the effect of Covid on unemployment and I believe a major explanatory factor is the industry that an individual belongs to. I am trying to control for industry in a DiD analysis to prove this theory. Within my dataset the variable for industry contains about 60 different industries and I was going to perhaps create a dummy variable for industries that closed during lockdown. However, the industries are in quite a random order- e.g. the first 10 industries are industries that didn't close but the 11th and 12th did close but the 13th didn't etc. I'm assuming I'll just have to go through the whole list and specify which closed and which did not, but how do I work this into a command? Do I use the varlist command?
Related Posts with Grouping Together Industries- Should I use Varlist?
Business CalendarHey everybody, I'm trying since a long while to change my daily data to business calendar data. Acco…
Creating a new variable based on frequency of string values in varlistThis might be a basic question but I've been trying to create a variable to count the frequency of s…
Stata speed when using i7 vs. i9 (vs. perhaps Xeon)Hello all, if I keep RAM constant at around 32GB, what sort of speed increase in Stata analysis (say…
Predict an out-of-sample value in StataHi all, I have a data set over a period 2008-2017. I estimated a gmm model based on this time period…
How to generate type III table for mixed linear models in Stata?Hello, I'm new to Stata and I'm trying to obtain a type III table for a mixed model in Stata? Any su…
Subscribe to:
Post Comments (Atom)
0 Response to Grouping Together Industries- Should I use Varlist?
Post a Comment