Search found 364 matches

by EViews Matt
Thu Jun 20, 2019 1:13 pm
Forum: Programming
Topic: Naming variable question
Replies: 12
Views: 278

Re: Naming variable question

I believe I'm not understanding what you're trying to achieve. Could you provide a more detailed description and perhaps an example?
by EViews Matt
Thu Jun 20, 2019 9:46 am
Forum: Programming
Topic: Naming variable question
Replies: 12
Views: 278

Re: Naming variable question

Would not a variation of my first response work then?
by EViews Matt
Wed Jun 19, 2019 12:49 pm
Forum: Programming
Topic: Naming variable question
Replies: 12
Views: 278

Re: Naming variable question

How about,

Code: Select all

sample firstmonths @all if @mod(@month, 3) = 1
sample secondmonths @all if @mod(@month, 3) = 2
sample thirdmonths @all if @mod(@month, 3) = 0
by EViews Matt
Wed Jun 19, 2019 11:47 am
Forum: Programming
Topic: Naming variable question
Replies: 12
Views: 278

Re: Naming variable question

Perhaps the simple solution is to perform the RMSE calculation explicitly, using either the current sample, e.g., @sqrt(@sumsq(x - x_f) / @obs(x_f)) or an explicit sample, e.g., @sqrt(@sumsq(x - x_f, "<sample>") / @obs(x_f, "<sample>")) to specify the observations you're consider...
by EViews Matt
Wed Jun 19, 2019 9:19 am
Forum: Bug Reports
Topic: EV10-11 STL decomposition - option forclen in cmd line seems ignored
Replies: 1
Views: 97

Re: EV10-11 STL decomposition - option forclen in cmd line seems ignored

Hello,

Thank you for identifying that problem. It will be fixed in the next EViews patch.
by EViews Matt
Tue Jun 18, 2019 2:42 pm
Forum: Programming
Topic: Naming variable question
Replies: 12
Views: 278

Re: Naming variable question

Hello,

You can certainly calculate the correct month-of-the-quarter defined by the end of a sample, e.g., the current sample,

Code: Select all

!q = @mod(@datepart(@dateval(@word(@pagesmpl, 2)), "mm") - 1, 3) + 1
series x_!q = ...
by EViews Matt
Fri Jun 07, 2019 8:53 am
Forum: General Information and Tips and Tricks
Topic: Commands like @coefs
Replies: 1
Views: 78

Re: Commands like @coefs

Hello,

Sure, you can use @r2 or @rbar2 (adjusted R^2). If you look at the data member section of the equation documentation, you'll see that you can access just about every piece of equation-related information.
by EViews Matt
Thu Jun 06, 2019 12:11 pm
Forum: Models
Topic: Dependencies using commands?
Replies: 2
Views: 286

Re: Dependencies using commands?

Hello, There is a pair of undocumented model procedures for returning upwards and downwards dependencies. model.@depends("foo") returns a string containing the variables that "foo" depends on (downward), and model.@upends("foo") returns a string containing the variables...
by EViews Matt
Thu May 02, 2019 11:02 am
Forum: Econometric Discussions
Topic: Near singular matrix error
Replies: 4
Views: 525

Re: Near singular matrix error

I suspect this is a starting values issue (your coefficient object c is probably all zeros, which is creating problems when the coefficients are first used in your system). Randomize the starting coefficients by running the command "rnd(c)" in the command window before attempting the estim...
by EViews Matt
Tue Apr 30, 2019 9:01 am
Forum: Econometric Discussions
Topic: Near singular matrix error
Replies: 4
Views: 525

Re: Near singular matrix error

Hello,

Curious, that's not the issue I experience when I attempt to perform the estimation you describe. Could you provide your EViews workfile with the system object ready to estimate?
by EViews Matt
Wed Apr 24, 2019 10:12 am
Forum: Estimation
Topic: log of non-positive number
Replies: 6
Views: 363

Re: log of non-positive number

Hello,

I'm able to reproduce your issue with EViews 10. It appears that there is multicollinearity among your regressors, which is causing an internal descriptive statistic to fail (EViews 11 skips this statistic).
by EViews Matt
Tue Apr 23, 2019 11:27 am
Forum: Data Manipulation
Topic: SQL code in separate file when reading data from an ODBC source?
Replies: 7
Views: 521

Re: SQL code in separate file when reading data from an ODBC source?

Hello, As you've discovered, @wread has both some buggy behavior and some features that are not documented. The good news is that in an upcoming patch to both EViews 10 and 11 we'll add the ability to read an external file into a string in a "raw" mode with no processing. That will preserv...
by EViews Matt
Wed Apr 10, 2019 3:55 pm
Forum: Programming
Topic: @datediff between quarter end
Replies: 2
Views: 201

Re: @datediff between quarter end

Hello,

Both of those expressions evaluate to 1 for me. Is your copy of EViews 9.5 up to date? Nov 1, 2018 is the most recent patch.
by EViews Matt
Thu Apr 04, 2019 3:31 pm
Forum: Data Manipulation
Topic: Count and %change of observations between resets
Replies: 1
Views: 221

Re: Count and %change of observations between resets

Let "x" be the numerical series and "flag" be the 0/1 series, how about this: series obs = @recode(flag(-2) = na, @obsid - 1, @recode(flag(-1) <> flag(-2), 1, obs(-1) + 1)) series pc = 100 * (x - x(-obs)) / x(-obs) smpl if flag <> flag(-1) I'm assuming a full-sample evaluation. T...
by EViews Matt
Mon Mar 25, 2019 10:39 am
Forum: Programming
Topic: Week number code
Replies: 9
Views: 450

Re: Week number code

How about this: series weekid = @ceiling(@datepart(@date, "ddd") / 7) series oneyearlag = -@ceiling(@datepart(@dateadd(@date, -weekid, "w"), "ddd") / 7) series twoyearlag = oneyearlag + oneyearlag(oneyearlag) series threeyearlag = twoyearlag + oneyearlag(twoyearlag) ser...

Go to advanced search