Hi. I want to create 15 groups of firms based on their wage distribution. I have a 10-year long monthly panel data, in which the unit of observation is the worker. Some workers appear more than once, some change jobs, etc. I am thinking of using `cluster kmeans` command on Stata, on an alternative data in which the unit of observation is each firm, and `x1 x2 x3`,... are the mean wages of each worker through the whole panel. Some firms have many workers so there will be as many variables as workers in the biggest firm. The others would present missing values from variable `xi` to `xj` with `i` being the number of workers in firm i, and `j` the number of workers in the biggest firm.
This option is not very good because I will only work with means.
Do you have a better idea for exploiting the richness of the panel?
I there a better way to cluster firms on panel data?
Thanks!
Related Posts with Cluster firms based on wage distribution on panel data
Collapsing a dataset with categorical variablesHi all, I have a dataset with indiviudal-level data that I would like to collapse into household-le…
How to group time datahello I need your help if I want to organize my data and group it by week. for example, I want to ca…
Local Average Treatment Effect after BiprobitHi all, I would like to know how to compute LATE after a biprobit model with endogenous binary regr…
Post-test estimations with imputed data using stcrregDear all, I am using Fine & Gray proportional subhazard models to calculate the effect of some …
Can the log-rank test be used to compare cumulative incidence curves where the temporal order of events is known but not the actual times?I'm using Stata 15 on 64-bit W10 and I used dataex to provide sample data below. I have about one h…
Subscribe to:
Post Comments (Atom)
0 Response to Cluster firms based on wage distribution on panel data
Post a Comment