"Alpha Series in Specification" Error !

For questions regarding programming in the EViews programming language.

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

MT_MANC
Posts: 23
Joined: Tue Mar 10, 2009 5:22 am

"Alpha Series in Specification" Error !

Postby MT_MANC » Sat Jul 10, 2010 5:49 am

EV6

When running code snippet below i get the following error for my For-Next loop: "Alpha Series in Specification "DLC" "
But ALL series are numberic (thus using @VAL when using GENR causes errors) so how would use of @EXPAND help as suggested by the error dailogue box
as I have no dummies here ?
Any suggestions ?

Code: Select all

workfile _j Q 1975:1 2006:4
READ(A2) c:\data\ws3\ARDL_J.WK1 9
output(t)  c:\data\ws3\ARDL_j
' DEFINE LOG VARIABLES ---------------------------
GENR RIR=(RLO_j-(DGDP_j/DGDP_j(-1)-1))
GENR LC=log(C_j)
GENR LPDY=log(PSDY_j)
' DEFINE DLOG VARIABLES --------------------------
GENR DLC=D(LC)
GENR DLPDY=D(LPDY)
GENR DRIR=D(RIR)
'Transform Variables
SMPL 1980:1 2006:4
vector(3) LR        ' (3) as there are THREE LR (forcing) regressor candidates
'Critical value bound is 3.793 4.855  - which are the LR forcing variables Peseran W table (Integration Bounds Test)
!j=1
 for %y DLC  DLPDY DRIR    ' Q. Are  LPDY and RIR LR forcing variables for LC ?
   ls %y c DLC(-1) DLPDY(-1) DRIR(-1) LC(-1) LPDY(-1) RIR(-1)
   scalar rrs=@ssr
   ls %y c DLC(-1) DLPDY(-1) DRIR(-1)
   LR(!j)=(@ssr-rrs)*(@regobs-3-3-1)/(rrs*3)   
   !j=!j+1
next


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

"Alpha Series in Specification" Error !

Postby EViews Gareth » Sat Jul 10, 2010 6:09 am

I'm on my phone, so can't easily see your code, but at a guess, you probably need to put {%y} instead of %y in the LS lines
Follow us on Twitter @IHSEViews

MT_MANC
Posts: 23
Joined: Tue Mar 10, 2009 5:22 am

Re: "Alpha Series in Specification" Error !

Postby MT_MANC » Sat Jul 10, 2010 7:39 am

That's got it - most kind & well spotted !

barts2
Posts: 3
Joined: Mon Jul 19, 2010 7:55 am

Re: "Alpha Series in Specification" Error !

Postby barts2 » Mon Jul 19, 2010 8:31 am

I am trying to run a pretty simple regression (LS return c market d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 d32 d33 d34 d35 d36 d37 d38 d39 d40 d41 d42 d43 d44 d45 d46 d47 d48 d49 d50 d51 d52 d53 d55 d56 d57 d58 d59 d60 d61 d62 d63 d64 d65 d66 d67)

but when i run the regression
Alpha series in specification-MARKET @EXANDcan convert to categorical dummies. appears???

if it helps this is for an event study. I tried replacing "market" with the returns from another index and this worked-I would however like to continue with the original "Market" variable. any suggestions what is wrong with the equation/variable???

Thanks!!

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

Re: "Alpha Series in Specification" Error !

Postby startz » Mon Jul 19, 2010 8:42 am

Look to see if MARKET is an alpha series rather than numeric series. If the icon says "abc" rather than showing a line graph, that's your problem.

barts2
Posts: 3
Joined: Mon Jul 19, 2010 7:55 am

Re: "Alpha Series in Specification" Error !

Postby barts2 » Mon Jul 19, 2010 9:01 am

THANKS! yep thats the problem. but what is called an alpha series is comprised only of numerical values. is there any reason for this? and any way to change an alpha series into a numerical one

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

Re: "Alpha Series in Specification" Error !

Postby startz » Mon Jul 19, 2010 9:06 am

Sometimes there is a non-numeric character lurking somewhere in the original input.

The @val() function should do what you want.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 31 guests