I have firm-year level data. I want to create person-specific indicators (not firm-specific). However, there are multiple groups (5) that a person can be in. In fact, most people will be in different groups for different years (although each person is only in one firm-year-group at a time). Thus something like this wouldn't be adequate:
reg yvar xvar i.group1 i.group2 etc.
Therefore, I think I need to create an indicator variable for each person, something like Person1, Person2, etc. as a dummy variable. However, I have thousands of people in my data. What is the most efficient way to code this? I've experimented with a few loops to no avail.
Finally, what is the best way to add these variables to a regression command? I don't think this would work based on what I have tried:
reg yvar xvar person*
Thanks!
Related Posts with Person-Specific Indicator
Logit models and stationery predictors*Do logit models require stationary predictors? …
What does inflate mean in a ZINB model?I am not sure what variable (predictor) to put in inflate( ) as I do not really understand the purpo…
Looping over two tablesDear group, I have a question about looping over two tables. In my first table, I have a list of in…
Continuously compounded returns in event studies (e.g., eventstudy2)Hello, I am currently conducting an event study. I used the Stata code eventstudy2 by Mr. Kaspereit…
Comparing two dependent variables with different frequency distributions So I am running these two OLS regressions on two DVs, each having the same IVs. The problem is, on…
Subscribe to:
Post Comments (Atom)
0 Response to Person-Specific Indicator
Post a Comment