This is an example of my data:
Basically I have an unbalanced panel dataset and I want to transform it into a balanced panel dataset. This is what I want:
I tried to use "spbalance, balance" but it just dropped all observations. Does anyone have a suggestion about how to get there? I have more than 100 periods in my dataset.
Code:
firm date nhired 2 198702 1 2 198705 41 2 198706 7 10 198702 2 10 198703 5 10 198704 3 10 198705 8 195 . . 394 . .
Code:
firm date nhired 2 198702 1 2 198703 0 2 198704 0 2 198705 41 2 198706 7 10 198702 2 10 198703 5 10 198704 3 10 198705 8 10 198706 0 195 198702 0 195 198703 0 195 198704 0 195 198705 0 195 198706 0 394 198702 0 394 198703 0 394 198704 0 394 198705 0 394 198706 0
Comment