Search found 562 matches

by EViews Matt
Fri Aug 04, 2023 9:50 am
Forum: Data Manipulation
Topic: How to generate different series in the same regression?
Replies: 2
Views: 3072

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...
by EViews Matt
Thu Aug 03, 2023 11:20 am
Forum: Data Manipulation
Topic: Count number of dummy variables
Replies: 1
Views: 2594

Re: Count number of dummy variables

Hello,

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)
by EViews Matt
Tue Jul 25, 2023 1:13 pm
Forum: Programming
Topic: Dummy variable UP/Down
Replies: 9
Views: 9026

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.

Code: Select all

series dummy = @recode(y>y(-1),1,@recode(y<y(-1),0,@nan(dummy(-1),1)))
by EViews Matt
Mon Jul 10, 2023 4:59 pm
Forum: Programming
Topic: running a sequence over subperiods
Replies: 3
Views: 4066

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...
by EViews Matt
Mon Jul 10, 2023 9:40 am
Forum: Programming
Topic: running a sequence over subperiods
Replies: 3
Views: 4066

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...
by EViews Matt
Wed May 31, 2023 3:13 pm
Forum: Bug Reports
Topic: rndseed?
Replies: 4
Views: 5233

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...
by EViews Matt
Tue May 23, 2023 2:21 pm
Forum: Bug Reports
Topic: rndseed?
Replies: 4
Views: 5233

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...
by EViews Matt
Wed May 03, 2023 11:33 am
Forum: Programming
Topic: smpl
Replies: 2
Views: 4516

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...
by EViews Matt
Mon Mar 27, 2023 2:16 pm
Forum: Models
Topic: MCE_SOLVE: a more reliable and efficient solver?
Replies: 7
Views: 7615

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 ...
by EViews Matt
Mon Mar 27, 2023 1:37 pm
Forum: Programming
Topic: Models and groups
Replies: 6
Views: 3617

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...
by EViews Matt
Thu Mar 23, 2023 9:56 am
Forum: Programming
Topic: Models and groups
Replies: 6
Views: 3617

Re: Models and groups

Hello,

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), ...)))
by EViews Matt
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: 15296

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...
by EViews Matt
Mon Mar 06, 2023 12:16 pm
Forum: Models
Topic: Find root cause of model error
Replies: 1
Views: 2646

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 "...
by EViews Matt
Thu Feb 09, 2023 3:52 pm
Forum: Programming
Topic: How to up/down elements in Vector?
Replies: 2
Views: 2233

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

Code: Select all

VEC2 = @capplyranks(VEC2, @seq(VEC2.@rows, -1, VEC2.@rows))
by EViews Matt
Fri Feb 03, 2023 2:31 pm
Forum: Programming
Topic: solve model with scenario
Replies: 2
Views: 2662

Re: solve model with scenario

Hello, There is an issue. When performing a stochastic solve, it appears that overrides may be ignored depending on the solution options (including the defaults, unfortunately). We should have a fix for this behavior ready for the next EViews patch. FYI, there's no need to specify a sample range as ...

Go to advanced search