Well spotted. The code runs now but just has all obs = 1 so I am not sure if the if statement is sampling correctly.
EDIT: Working fine now, thanks again.
Search found 7 matches
- Thu Sep 14, 2017 10:26 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
- Thu Sep 14, 2017 9:51 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Re: Panel Data
Nope still "Syntax error in "if var01="OFFICE""
- Thu Sep 14, 2017 9:35 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Re: Panel Data
Thanks Gareth I have looked at this before. This is what I have tried instead of @recode, which gives the error "Syntax error in "If VAR01="{%x}"" I can't seem to sample the individual cross sections to change the dummy to 1. Any suggestions would be greatly received! for %x...
- Thu Sep 14, 2017 8:39 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Re: Panel Data
Thanks but I'm not sure how to use a group for what I need. Could you please just briefly run through how the loop function works with string series identifiers? I am sure this is very efficient once you know how to use but there is not much guidance apart from the few threads you have written on he...
- Thu Sep 14, 2017 8:06 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Re: Panel Data
Thanks Gareth
The panel structure works fine, I have done it on a smaller scale. I just don't want to have to manually run the @RECODE command to make each dummy. I have to run several other sized panel in the same way.
Surely FOR LOOP can be used in someway?
The panel structure works fine, I have done it on a smaller scale. I just don't want to have to manually run the @RECODE command to make each dummy. I have to run several other sized panel in the same way.
Surely FOR LOOP can be used in someway?
- Thu Sep 14, 2017 7:50 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Re: Panel Data
I have been playing around with the FOR LOOP function but can't get it to work. My cross sections are identified in a var01 string series. Essentially I need to run: series 1, 2, 3...x = @recode(var01="1,2,3,.....x", 1, 0) to create dummy series for each cross section. Gareth could you giv...
- Sun Sep 10, 2017 2:24 am
- Forum: General Information and Tips and Tricks
- Topic: Panel Data
- Replies: 11
- Views: 9024
Panel Data
Hi, I would appreciate some input on how best to deal with panel data. I have in total about 100 indices (60 quarters each) which I import into Eviews from excel. I then stack the data into a different sheet and the indices are identified by a small text string. The reason for my work is to see the ...