Search found 2 matches

by sky22
Wed Mar 03, 2021 2:07 pm
Forum: Programming
Topic: If statement within a loop for panel data
Replies: 3
Views: 4141

Re: If statement within a loop

Hi
thank you but the smpl function does not work as the data is a panel. so the sample is country and time. I have a separate variable for year and country.
Is there a way around this?
by sky22
Wed Mar 03, 2021 1:47 pm
Forum: Programming
Topic: If statement within a loop for panel data
Replies: 3
Views: 4141

If statement within a loop for panel data

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 rem...

Go to advanced search