Hi everyone,

I struggle to reshape my panel data to wide.

The idea is to start from this:

Code:
clear
input date str2 country crisis
1991 FR 1
1992 FR 1
1993 FR 0
1991 ES 1
1992 ES 1
1993 ES 0
1991 PT 1
1992 PT 1
1993 PT 0
end
and obtain this:

Code:
clear
input date crisis_FR crisis_ES crisis_PT
1991 1 1 1
1992 1 1 1
1993 0 0 0
end
I know I have already posted a similar thread here: https://www.statalist.org/forums/for...in-time-series)
few days ago, but I've been stuck on this since. I don't know why, it's seems quite simple.

Thanks in advance,
Martin