I have a database with data of payments by certificate. Each certificate is given to a worker, who could have many in a given year. Each certificate is also clasified by employer and region.
I need to make an histogram of the amount of payments by worker and by employer (I mean, considering the total amount a worker or an employer receives), but the standard Stata command give results considering only the amount by certificate.
Surely there is a way, but I am a beginner.
Any help would be appreciated.
The database es like the following, with nearly one million records:
Certificate_number WorkerID EmployerID Region Amount
1 1 1 1 10
2 1 1 1 9.75
3 1 1 1 8.2
4 2 1 1 9.5
5 3 2 2 10.2
6 4 3 2 9.9
7 4 3 2 9.75
8 5 4 2 9.75
9 6 5 3 9.75
Thanks a lot
I need to make an histogram of the amount of payments by worker and by employer (I mean, considering the total amount a worker or an employer receives), but the standard Stata command give results considering only the amount by certificate.
Surely there is a way, but I am a beginner.
Any help would be appreciated.
The database es like the following, with nearly one million records:
Certificate_number WorkerID EmployerID Region Amount
1 1 1 1 10
2 1 1 1 9.75
3 1 1 1 8.2
4 2 1 1 9.5
5 3 2 2 10.2
6 4 3 2 9.9
7 4 3 2 9.75
8 5 4 2 9.75
9 6 5 3 9.75
Thanks a lot
Comment