I am trying to reshape the following table to wide format; but, I keep getting errors because, I think, my data structure is not what -reshape- is supposed to work with
Now, I want this to be in this format:
Could you please help me with the code?
Thanks,
Navid
| Firm | Year | estimator |
| 3D | 2000 | BEAR |
| 3D | 2000 | GSAX |
| 3D | 2001 | GSAX |
| Canon | 2000 | BEAR |
| Canon | 2000 | JPMORGAN |
| Canon | 2000 | GSAX |
| Firm | Year | estimator1 | estimator2 | estimator3 |
| 3D | 2000 | Bear | GSAX | |
| 3D | 2001 | GSAX | ||
| Canon | 2000 | BEAR | JPMORGAN | GSAX |
Could you please help me with the code?
Thanks,
Navid

Comment