creating weekly and semi annual dummies with @expand

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Oct 29, 2013 12:52 am

thank you guys. it worked.

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Nov 12, 2013 7:43 am

i copied a set of data from excel cells into my empty worksheet.my data contained numbers. it pasted the data into my worksheet as alpha01.
so i presume they are in strings. how do i convert this to numbers and generate a series from my data.

i tried
series newnumb=@val(alpha01) and it doesnt work
can i get some help

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating weekly and semi annual dummies with @expand

Postby EViews Gareth » Tue Nov 12, 2013 9:22 am

Code: Select all

series newnumb=@val(alpha01)
Should work.

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Nov 12, 2013 10:40 am

it gives me NA as the inputs

also when i imported that same data from excel to eviews it was giving me NA in the cells. But when i copy and paste it,i get my data on eviews in a group with name as alpha01

but series newnumber=@val(alpha01) gives me NA in the cells
Last edited by ray2013 on Tue Nov 12, 2013 10:46 am, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating weekly and semi annual dummies with @expand

Postby EViews Gareth » Tue Nov 12, 2013 10:41 am

There's probably some non-numerical characters in that alpha series then.

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Nov 12, 2013 10:59 am

my alpha02 values i copied from excel appear in eviews as follows and its left aligned

6 876    
7 194    
7 481    
7 359    
8 316    

it doesnt appear as
6876    
7194    
7481    
7359    
8316    

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: creating weekly and semi annual dummies with @expand

Postby startz » Tue Nov 12, 2013 11:01 am

A space in the middle would be the non-numeric character Gareth alluded to.

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Nov 12, 2013 11:08 am

thanks guys. i guess i better remove the spaces in the data from excel before i import it

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: creating weekly and semi annual dummies with @expand

Postby startz » Tue Nov 12, 2013 11:33 am

It is possible that something like the following will work in EViews.

Code: Select all

series numeric=@val(@replace(alpha02," ",""))

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Nov 12, 2013 12:10 pm

i tried it and it still gives NA

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: creating weekly and semi annual dummies with @expand

Postby startz » Tue Nov 12, 2013 12:11 pm

i tried it and it still gives NA
Probably back to Excel then. But just to be sure, the code requires no spaces between the last set of quotes.

ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Sat Nov 30, 2013 11:46 am

is it possible to generate a table of AIC values for my
equations

equation arma01.ls y c ma(1)
equation arma02.ls y c ma(1) ma(2)
equation arma03.ls y c ma(1) ma(2) ma(3)
equation arma10.ls y c ar(1)
equation arma11.ls y c ar(1) ma(1)
equation arma12.ls y c ar(1) ma(1) ma(2)

to

equation arma33.ls y c ar(1) ar(2) ar(3) ma(1) ma(2) ma(3)

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating weekly and semi annual dummies with @expand

Postby EViews Gareth » Sat Nov 30, 2013 11:51 am


ray2013
Posts: 18
Joined: Thu Oct 24, 2013 12:41 pm

Re: creating weekly and semi annual dummies with @expand

Postby ray2013 » Tue Dec 24, 2013 2:55 am

when i copy the correlogram graph into msword, it doesnt show the bars of the ACF AND PACF but it shows it as " * ".

how do i copy it into microsoft word for it to show the bars of the ACF and PACF

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating weekly and semi annual dummies with @expand

Postby EViews Gareth » Tue Dec 24, 2013 8:27 am

Other than by doing a screenshot, you cannot.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest