Search found 60 matches

by loulouviews
Tue Apr 05, 2016 12:43 pm
Forum: Data Manipulation
Topic: EViews doesnt remove quotes when the equation is a str_list
Replies: 9
Views: 2038

Re: EViews doesnt remove quotes when the equation is a str_l

The equation could not be defined inside the for loop because the endogenous variable is not the only parameter changing (that's why I wrote "almost").
by loulouviews
Tue Apr 05, 2016 10:50 am
Forum: Data Manipulation
Topic: EViews doesnt remove quotes when the equation is a str_list
Replies: 9
Views: 2038

Re: EViews doesnt remove quotes when the equation is a str_l

The purpose of my example was to illustrate the challenge I face. My actual challenge is a bunch of very similar equations on oil prices (almost only the endogenous variable is varying). I want to do numerous comparable things for each of these equations (estimating, forecasting, doing some economet...
by loulouviews
Tue Apr 05, 2016 9:41 am
Forum: Data Manipulation
Topic: EViews doesnt remove quotes when the equation is a str_list
Replies: 9
Views: 2038

Re: EViews doesnt remove quotes when the equation is a str_l

I was looking for a way to declare an equation with the name of variables that I would declare later on. That is why I was looking for a way to declare an equation as a string list and then estimate the equation with each variable_as_a_string replace by its current value. Imagine that you have somet...
by loulouviews
Mon Apr 04, 2016 11:50 pm
Forum: Data Manipulation
Topic: EViews doesnt remove quotes when the equation is a str_list
Replies: 9
Views: 2038

Re: EViews doesnt remove quotes when the equation is a str_l

Thanks for your prompt reply, I'm always confused with the rules of quotes replacing in EViews. I still have a question : EViews is going to replace %_myTS by its current value, at assignment So if I do %_eq=%_myTS+" "+%_myTS+"(-1)" series myTS2=nrnd+1 %_myTS="myTS2" Th...
by loulouviews
Mon Apr 04, 2016 10:25 am
Forum: Data Manipulation
Topic: EViews doesnt remove quotes when the equation is a str_list
Replies: 9
Views: 2038

EViews doesnt remove quotes when the equation is a str_list

Hi, I want to do something like wfcreate m 1990 2000 series myTS=nrnd %_myts="myTS" %_eq="{%_myts} {%_myts}(-1)" equation myEq.ls {%_eq} c But EViews does not remove quotes and I got the following error : { is not defined in "EQUATION MYEQ.LS {"MYTS"} {"MYTS&q...
by loulouviews
Mon Apr 04, 2016 3:03 am
Forum: Data Manipulation
Topic: pageupdate on Excel - dates / smpl options
Replies: 1
Views: 1150

pageupdate on Excel - dates / smpl options

Hi, I'm willing to update an excel sheet with new data. I have two questions : - How can I have EViews writing dates as in the `write` command, ie "1990M01" instead of 32874. - How can I restrict the sample ? writing something like `smpl 2014 2016`before the `pagesave` command is unfortuna...
by loulouviews
Thu Mar 03, 2016 7:55 am
Forum: Data Manipulation
Topic: Transforming Alpha Series into Numeric
Replies: 2
Views: 1387

Re: Transforming Alpha Series into Numeric

I finally end up doing group g_all * for !kk=1 to g_all.@count %name=g_all.@seriesname(!kk) if {%name}.@type="ALPHA" then rename {%name} _temp series {%name}=@val(_temp) delete _temp endif next delete g_all If anyone has a more parsimonious and elegant solution, I'm eager to hear about it....
by loulouviews
Thu Mar 03, 2016 5:37 am
Forum: Data Manipulation
Topic: Transforming Alpha Series into Numeric
Replies: 2
Views: 1387

Transforming Alpha Series into Numeric

Hi, I'm currently facing the following problem: I'm reading data from an html table. NAs in that table are encoded in two ways : either with blank or with "NaN". When reading that table into EViews, EViews is interpreting the series containing NaN as alpha series. I've tried to do : wfopen...
by loulouviews
Wed Mar 02, 2016 10:29 am
Forum: Data Manipulation
Topic: How to change both name and display name of variable
Replies: 11
Views: 4840

Re: How to change both name and display name of variable

Thanks a lot for your reply !
Finally I noticed that the displayname was still the original name so I did

Code: Select all

%name=name_of_series.@displayname
by loulouviews
Wed Mar 02, 2016 3:58 am
Forum: Data Manipulation
Topic: How to change both name and display name of variable
Replies: 11
Views: 4840

Re: How to change both name and display name of variable

Ok, thanks for your reply. How can I get the original name of a variable then ? Here is my problem : I'm reading series from a .tsv file. EViews is reading it perfectly except for a bunch of variables which got a name longer than 24 characters. EViews automatically renames them but it also stores th...
by loulouviews
Mon Feb 29, 2016 1:46 am
Forum: Data Manipulation
Topic: How to change both name and display name of variable
Replies: 11
Views: 4840

Re: How to change both name and display name of variable

Hi, I'm reopening this thread because I'm renaming series by doing rename {%oldname} {%newname} But when plotting the series, EViews still displays the oldname. Since I've more than 8000 series renamed in a loop and renaming each sequentially, I'd prefer not doing another loop with .displayname proc...
by loulouviews
Fri Nov 20, 2015 7:55 am
Forum: Programming
Topic: string and date
Replies: 1
Views: 888

string and date

Hi ! I'm struggling to understand how string and date are working in EViews. For instance, I would like to use @otod to define the first date of sample I wrote smpl @otod(23) %date_end EViews says that @otod(23) is an illegal date. Following help, I've tested %date=@otod(1) smpl %date %date+1 EViews...
by loulouviews
Fri Nov 20, 2015 4:41 am
Forum: Programming
Topic: copy all objects - resid and c issue
Replies: 1
Views: 959

Re: copy all objects - resid and c issue

I finally did

Code: Select all

copy myWf.wf1::Q\* Q\*_n
delete c_n resid_n
rename *_n *

which works well.
by loulouviews
Fri Nov 20, 2015 4:37 am
Forum: Programming
Topic: copy all objects - resid and c issue
Replies: 1
Views: 959

copy all objects - resid and c issue

Hi, I want to copy all data from a workfile in my current directory to my current wf. I'm doing : copy myWf.wf1::Q\* Q\ I got a pop-up window because EViews is trying to copy "c" and "resid" with exist by default in my current wf. How can I tell EViews not to copy "c" a...
by loulouviews
Wed Oct 07, 2015 3:22 am
Forum: Programming
Topic: Default text position on a graph
Replies: 2
Views: 927

Re: Default text position on a graph

Ok. Thanks for your reply

Go to advanced search