If statement within a loop for panel data
Posted: Wed Mar 03, 2021 1:47 pm
I need advice on a simple program I am trying to run which does not work. I want to include an IF statement within a loop. The data is a panel series in long form, so variable year is a repeated series
SERIES INF
For !YR=1990 to 2017
If year =!yr then
GENR inf=f{!yr}cpi
endif
next
The series inf remains blank. How do i fix this?
thank you
SERIES INF
For !YR=1990 to 2017
If year =!yr then
GENR inf=f{!yr}cpi
endif
next
The series inf remains blank. How do i fix this?
thank you