Search found 5 matches
- Thu May 30, 2024 3:43 pm
- Forum: Programming
- Topic: Saving break years after structural break test
- Replies: 7
- Views: 11704
Re: Saving break years after structural break test
Hello Gareth, I think I found the solution as follows. Thanks for your help. !col = 2 if @len(%breaks) > 0 then for %j {%breaks} mytable(!row, !col) = %j !col = !col+1 next else mytable(!row, !col) = "" ' Fill empty cells in case of no breaks endif
- Thu May 30, 2024 3:33 pm
- Forum: Programming
- Topic: Saving break years after structural break test
- Replies: 7
- Views: 11704
Re: Saving break years after structural break test
Thanks a lot, Gareth. If there are no break years, the code returns an error. I think I need to modify this code: !col = 2 for %j {%breaks} mytable(!row, !col) = %j !col = !col+1 next I tried the following, but still returning error. Could you please help, Gareth? Thanks a lot! !col = 2 if {%breaks}...
- Thu May 30, 2024 12:36 pm
- Forum: Programming
- Topic: Saving break years after structural break test
- Replies: 7
- Views: 11704
Re: Saving break years after structural break test
Thanks, Gareth. Do I have to fill the table manually as in my simple code below, or is there any way to automate which rows to be changed based on the structural break years? For the way I did it below, it's still time consuming and error-prone. Thanks. ' Creating the table ' Step 1: Define the numb...
- Thu May 30, 2024 9:56 am
- Forum: Programming
- Topic: Saving break years after structural break test
- Replies: 7
- Views: 11704
Re: Saving break years after structural break test
Hello Gareth, Thank you your help. Is there any way I can export the string into excel? Ideally I need to have an excel table where the rows are the year and the columns are each country/variable, with value = 1 if the year is equal to the break year. If that is not possible with EViews, at least I ...
- Thu May 30, 2024 7:56 am
- Forum: Programming
- Topic: Saving break years after structural break test
- Replies: 7
- Views: 11704
Saving break years after structural break test
Hello everyone, I am very new with EViews. Can you help me how to save the years from the structural break test? Here is my simple code and attached is the sample data. The output that I aim is dummy variable for the years when structural break take place for each country/variable. Thank you. %count...
