Search found 563 matches
- Tue Aug 29, 2023 4:03 pm
- Forum: Models
- Topic: Incorrect error message
- Replies: 6
- Views: 52875
Re: Incorrect error message
Hello, EViews is correctly reporting that override data is missing in Scenario 2. That scenario excludes and overrides series DISPINCRP, but the series that should hold the override values, DISPINCRP_2M, is full of NAs. Perhaps that series didn't exist prior to your initial solution attempt and an e...
- Fri Aug 04, 2023 9:50 am
- Forum: Data Manipulation
- Topic: How to generate different series in the same regression?
- Replies: 2
- Views: 3099
Re: How to generate different series in the same regression?
Hello, The result you're seeing is due to your use of nested loops. For each of the series named in the outer loop, i.e. "serie1", "serie2", and "serie3", you create three series in the inner loop, i.e. "d1", "d2", and "d3". Each of these s...
- Thu Aug 03, 2023 11:20 am
- Forum: Data Manipulation
- Topic: Count number of dummy variables
- Replies: 1
- Views: 2619
Re: Count number of dummy variables
Hello,
Try these...
Try these...
Code: Select all
series cum = @recode(@isna(below50), 0, @nan(cum(-1), 0) + 1)
series cum2 = @recode(@eqna(below50,below50(-1)), @nan(cum2(-1), 0), 0) + @recode(@isna(below50), -1, 1)
- Tue Jul 25, 2023 1:13 pm
- Forum: Programming
- Topic: Dummy variable UP/Down
- Replies: 9
- Views: 9191
Re: Dummy variable UP/Down
Hello,
Building on Gareth's example, a self-referential expression lets you maintain the previous dummy value in the case that the return is constant.
Building on Gareth's example, a self-referential expression lets you maintain the previous dummy value in the case that the return is constant.
Code: Select all
series dummy = @recode(y>y(-1),1,@recode(y<y(-1),0,@nan(dummy(-1),1)))
- Mon Jul 10, 2023 4:59 pm
- Forum: Programming
- Topic: running a sequence over subperiods
- Replies: 3
- Views: 4123
Re: running a sequence over subperiods
Certainly, with the appropriate downstream changes: %specs = "1 " + @str(!d-1) + " " + @str(!d) + " " + @str(!n) for %start %end {%specs} smpl %start %end ' Only needed if the 'list of instructions' includes operations affected by the sample for !i=%start to %end list o...
- Mon Jul 10, 2023 9:40 am
- Forum: Programming
- Topic: running a sequence over subperiods
- Replies: 3
- Views: 4123
Re: running a sequence over subperiods
Hello, There are a couple of ways you could eliminate the redundancy in your program. You could move the common code to a subroutine, after which your program would look something like this: subroutine foo list of instructions endsub smpl {subp1} for !i=1 to !d-1 call foo next smpl {subp2} for !i=!d...
- Wed May 31, 2023 3:13 pm
- Forum: Bug Reports
- Topic: rndseed?
- Replies: 4
- Views: 5326
Re: rndseed?
Hello, The new setting isn't in the documentation quite yet, but you can find it in the settings dialog: Options -> General Options -> Advanced system options -> "Reproducible random number sequences in series expressions". It's a global setting, not an option to 'rndseed' or another comma...
- Tue May 23, 2023 2:21 pm
- Forum: Bug Reports
- Topic: rndseed?
- Replies: 4
- Views: 5326
Re: rndseed?
Hello, It appears that you're experiencing a "normal" EViews behavior involving random number generation. A sequence of random numbers generated as part of a series expression is dependent on both the state of the underlying random number generators (influenceable via the 'rndseed' command...
- Wed May 03, 2023 11:33 am
- Forum: Programming
- Topic: smpl
- Replies: 2
- Views: 4579
Re: smpl
Hello, In a smpl statement, e.g. "smpl < start > < end >", the < start > specification uses the first observation within that specification while the < end > specification uses the last observation within that specification (this is only an issue when the specification as at a lower freque...
- Mon Mar 27, 2023 2:16 pm
- Forum: Models
- Topic: MCE_SOLVE: a more reliable and efficient solver?
- Replies: 7
- Views: 7728
Re: MCE_SOLVE: a more reliable and efficient solver?
Hello, The existence of more efficient algorithms wouldn't surprise me, given the simplicity of the Fair-Taylor algorithm, but I haven't evaluated the algorithms bundled with the FRB/US model. I have no reason to doubt the authors, so exploring a native EViews implementation of their work in future ...
- Mon Mar 27, 2023 1:37 pm
- Forum: Programming
- Topic: Models and groups
- Replies: 6
- Views: 3687
Re: Models and groups
Hello, I don't see anything in your code that would specifically impair performance, there's simply a large number of iterations to be executed. In case you weren't already doing so, running the program in quiet mode may yield a modest performance improvement. Programs that execute a lot of individu...
- Thu Mar 23, 2023 9:56 am
- Forum: Programming
- Topic: Models and groups
- Replies: 6
- Views: 3687
Re: Models and groups
Hello,
You can use nested calls to @pmax as a replacement for @rmax. For example,
You can use nested calls to @pmax as a replacement for @rmax. For example,
Code: Select all
net = x - @pmax(x(-1), @pmax(x(-2), @pmax(x(-3), ...)))
- Tue Mar 21, 2023 4:00 pm
- Forum: Estimation
- Topic: How to correctly define user-specified matrix/vector to obtain the desired IRFs after estimating a VAR
- Replies: 7
- Views: 15335
Re: How to correctly define user-specified matrix/vector to obtain the desired IRFs after estimating a VAR
Hello, The names "Shock1", "Shock2", etc., are hard-coded into the impulse response view, but with a little work you can recreate the response multigraph with your own labels. Since there isn't a way to alter individual graphs within a multigraph, the strategy must be to create a...
- Mon Mar 06, 2023 12:16 pm
- Forum: Models
- Topic: Find root cause of model error
- Replies: 1
- Views: 2685
Re: Find root cause of model error
Hello, A few steps can help diagnose these sorts of issues. First is identifying the observation in question. If the critical observation isn't clear from the solution series, then it's frequently easiest to run the solution with the "Display detail messages..." option enabled on the "...
- Thu Feb 09, 2023 3:52 pm
- Forum: Programming
- Topic: How to up/down elements in Vector?
- Replies: 2
- Views: 2254
Re: How to up/down elements in Vector?
Hello,
It appears you want to reverse the vector. While EViews doesn't provide a reversing function, you can achieve the same result via other operations, e.g.,
It appears you want to reverse the vector. While EViews doesn't provide a reversing function, you can achieve the same result via other operations, e.g.,
Code: Select all
VEC2 = @capplyranks(VEC2, @seq(VEC2.@rows, -1, VEC2.@rows))