Page 1 of 1

"Alpha Series in Specification" Error !

Posted: Sat Jul 10, 2010 5:49 am
by MT_MANC
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

"Alpha Series in Specification" Error !

Posted: Sat Jul 10, 2010 6:09 am
by EViews Gareth
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

Re: "Alpha Series in Specification" Error !

Posted: Sat Jul 10, 2010 7:39 am
by MT_MANC
That's got it - most kind & well spotted !

Re: "Alpha Series in Specification" Error !

Posted: Mon Jul 19, 2010 8:31 am
by barts2
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!!

Re: "Alpha Series in Specification" Error !

Posted: Mon Jul 19, 2010 8:42 am
by startz
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.

Re: "Alpha Series in Specification" Error !

Posted: Mon Jul 19, 2010 9:01 am
by barts2
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

Re: "Alpha Series in Specification" Error !

Posted: Mon Jul 19, 2010 9:06 am
by startz
Sometimes there is a non-numeric character lurking somewhere in the original input.

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