Hello Stata experts!
Looking for some advice on calculating percentiles of wages for a large dataset. Its a panel data in the following form:
year FirmId Emp_Wage
1 11 1
1 11 2
1 11 3
1 12 11
1 12 12
1 12 13
This repeats for about 10 years. I would like to have the percentile distribution of wages for each of the firms (within firm) for each of the year.
The year part can be handled using the if clause since there are few (10) years.
But there are more than 1000 firms. For each firm, I would like to have the distribution of wages in percentiles.
I try to use the pshare command, but it cannot be combined with "by".
Can anyone help me by suggesting an alternate or maybe provide link to a thread if this has been discussed before?
Thanks a ton!
Looking for some advice on calculating percentiles of wages for a large dataset. Its a panel data in the following form:
year FirmId Emp_Wage
1 11 1
1 11 2
1 11 3
1 12 11
1 12 12
1 12 13
This repeats for about 10 years. I would like to have the percentile distribution of wages for each of the firms (within firm) for each of the year.
The year part can be handled using the if clause since there are few (10) years.
But there are more than 1000 firms. For each firm, I would like to have the distribution of wages in percentiles.
I try to use the pshare command, but it cannot be combined with "by".
Can anyone help me by suggesting an alternate or maybe provide link to a thread if this has been discussed before?
Thanks a ton!
Comment