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
How to Add Deterministic Trend to Panel Data?Hello, I have a panel data with 115 countries and 20 years. I did unit root test in all my independ…
Not significant in bivariate chi square or bivariate logistic regression but is in multivariate logistic regresison?Hi, Ive come across in my analysis results that two independent variables are not significant in biv…
Multilevel modelling: How to predict upper-level outcomes?Dear all I have the following problem that I hope to find help with: My data structure is as follo…
esttab, eststo and appendmodelsDear all, I am tabulating different dependent variables in consecutive rows (not consecutive columns…
Parameter constraints for MLE modelDear forum guests! I need to introduce a range constraint for the sum on parameters in MLE model. T…
Subscribe to:
Post Comments (Atom)
0 Response to Person-Specific Indicator
Post a Comment