Search found 74 matches

by mamo
Fri Jul 07, 2017 1:20 am
Forum: Program Repository
Topic: Subroutine time-shifting a sample object
Replies: 2
Views: 108

Re: Subroutine time-shifting a sample object

Final correction Error corrected: the sample object "s1" in the code of the subroutine "shiftsmpl" was corrected to "s", in line with the sample object "s" provided as an argument to the subroutine. Best, mamo 'Example of using shiftsmpl 'Create wf wfcreate q ...
by mamo
Thu Jul 06, 2017 8:30 am
Forum: Program Repository
Topic: Subroutine time-shifting a sample object
Replies: 2
Views: 108

Re: Subroutine time-shifting a sample object

Updated: includes error control, and now also usable with undated pages Best, mamo 'Example of using shiftsmpl 'Create wf wfcreate q 2000Q1 2016Q4 'Create an indicator variable series indicator=nrnd>0 'Defining sample s1 sample s1 2002Q1 2010Q4 if indicator=1 'Set the current page sample to s1 smpl ...
by mamo
Thu Jul 06, 2017 5:04 am
Forum: Program Repository
Topic: Subroutine time-shifting a sample object
Replies: 2
Views: 108

Subroutine time-shifting a sample object

Dear Eviews users, the program below contains the subroutine "shiftsmpl" to shift the lower and upper boundaries in pairs of period definitions in a sample object easily. This could be useful within a program applying statistical/ econometric analyses over rolling samples. The current vers...
by mamo
Wed Jul 05, 2017 6:12 am
Forum: Suggestions and Requests
Topic: Command to improve sample arithemtics
Replies: 0
Views: 74

Command to improve sample arithemtics

Dear Eviews team I use Eviews Version 9.5 For future versions of Eviews, I would you like to consider the following improvements to facilitate working with samples in a program. command "smplshift(s1,n1[,n2])" s1: Sample n1, n2: Integers This would shift the lower (upper) time limit of a s...
by mamo
Thu Jun 01, 2017 6:53 am
Forum: Data Manipulation
Topic: How to make series disappear from a graph?
Replies: 1
Views: 98

How to make series disappear from a graph?

Dear Eviews team occasionally, one may want the make a series disappear from a graph (e.g., you may just graph the whole of a given matrix and subsequently "switch of" one or several columns). So, when trying something like a) graph.setelem(1) linepattern(none) symbol(none) or b) graph.set...
by mamo
Wed May 03, 2017 6:01 am
Forum: Programming
Topic: How to assign the size of a sample to a variable/scalar?
Replies: 1
Views: 149

How to assign the size of a sample to a variable/scalar?

Dear Eviews team what is the most direct approach to assign the size of a specific sample to a variable or scalar within a program? (In the code below provided as an example, the line starting with !samplesize does not work and produces an error) Best, mamo wfcreate a 2001 2016 4 ' The following lin...
by mamo
Fri Mar 17, 2017 3:48 am
Forum: Bug Reports
Topic: Programming: bug in compareson with empty strings
Replies: 5
Views: 464

Re: Programming: bug in compareson with empty strings

Sorry for coming back on this; it may appear a bit nitty-gritty, but it may be helpful to point to users that the safe approach to comparing a string with an empty string consists of making use of the functions @isempty(), or @equna(). Strictly spoken, your reply applies to comparisons with alpha se...
by mamo
Thu Mar 16, 2017 1:46 am
Forum: Bug Reports
Topic: Programming: bug in compareson with empty strings
Replies: 5
Views: 464

Re: Programming: bug in compareson with empty strings

Many thanks!
@eqna works as expected
Best, mamo
by mamo
Wed Mar 15, 2017 7:24 am
Forum: Bug Reports
Topic: Programming: bug in compareson with empty strings
Replies: 5
Views: 464

Programming: bug in compareson with empty strings

Dear Eviews team, I use Eviews 9.5, June 2016 built. Comparing a non-empty string variable with an empty string variable in a program using the inequality sign "<>" gives the wrong result of equality (see example program listed below) Best, mamo wfcreate u 1 %string1="" %string2=...
by mamo
Fri Feb 17, 2017 5:34 am
Forum: Data Manipulation
Topic: Direct transformations of db referenced series
Replies: 4
Views: 266

Re: Direct transformations of db referenced series

Hi, indeed, it works as intended if the name of the working directory does not contain spaces (like "c:\temp" as in your example). Otherwise, the result I have reported can be replicated. The code below is the same as before, except the 2nd line which changes to a working directory with a ...
by mamo
Fri Feb 17, 2017 4:31 am
Forum: Data Manipulation
Topic: Direct transformations of db referenced series
Replies: 4
Views: 266

Direct transformations of db referenced series

Dear Eviews team I use Eviews 9.5 March 17 2016 build. Are direct transformations of series stored in a database, such as show d(dbn::x) meant to be feasible in Eviews? If so I am wondering about an unexpected result in circurmstances similar to the ones generated by the programme below. In short, i...
by mamo
Fri Feb 10, 2017 2:42 am
Forum: Data Manipulation
Topic: pageunstack
Replies: 3
Views: 313

Re: pageunstack

Missing picture now here in the attachment
Best, mamo
by mamo
Tue Feb 07, 2017 4:09 am
Forum: Data Manipulation
Topic: pageunstack
Replies: 3
Views: 313

pageunstack

Dear Eviews team, I use Eviews 9.5 27 Dec 2016 build I find that unstacking using the menu as compared to using the pageunstack command seems to make difference if the series containing the unstacking identifier has only one (repeated) value (see example in the code below). Particularly, it seems th...
by mamo
Mon Feb 06, 2017 3:24 am
Forum: Data Manipulation
Topic: Option @smpl in command wfsave
Replies: 2
Views: 315

Option @smpl in command wfsave

Dear EVIEWs team, I use Eviews 9.5, Mach 17 2016 build I am wondering how I can save a subsample of data. The example code below should save only those observation for which x>0 in a new workfile wfcreate u 100 series x=nrnd wfsave test.wf1 @smpl @all if x>0 show x Unexpectedly, the newly created wo...
by mamo
Mon Jan 30, 2017 4:00 am
Forum: Suggestions and Requests
Topic: ddrowopts, group dated table view
Replies: 4
Views: 867

ddrowopts - how to format custom row? // Re: group dated table view

Dear Eviews team, I use Eviews 9.5, March 17 2016 build How can one format a custom row with a header in a dated table view? The program below aims a formatting the 3rd row of the first series but gives rise to a break-down of Eviews Best, mamo 'Create workfile with two random series wfcreate q 2000...

Go to advanced search