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
Request for guidance regarding suitable methodology.Hello, Now a days I investigate the topic about IT and economic growth related. In my base papers 10…
Replication of PaperHi there, I am currently trying to replicate this table on Stata from a paper. However, I am strug…
Problem with modifying dta files from directory I get the error: no variables definedHi, I´m working with a code to call up files from a directory and save them in another folder with c…
Time wth multiple fixed effects.I am running a regression looking at the fertility rate amongst individuals who gained Medicaid cove…
Creating inverse-distance matrices with cross-sectional data and duplicate locationsHi, I am running a hedonic regression on how (log) house prices and distance from a local airport. …
Subscribe to:
Post Comments (Atom)
0 Response to Person-Specific Indicator
Post a Comment