Labeling storage matrix

For questions regarding programming in the EViews programming language.

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

Laurel
Posts: 19
Joined: Mon May 04, 2020 2:39 pm

Labeling storage matrix

Postby Laurel » Thu Oct 15, 2020 2:20 am

Code: Select all

'create a workfile wfcreate q 1990 2010 'create a group which will contain the xs group xs 'create 5 series for %i GDP UNEMP INFL CPI M1 series {%i}=nrnd xs.add {%i} next 'create matrix to store wald statistics and p-values matrix(10,2) Walds 'create empty equation to be used inside the loop equation eq ''counter of how many equations we have run !rowcounter=1 'run pairwise regressions between each series for !i=1 to xs.@count-1 %iname = xs.@seriesname(!i) for !j=!i+1 to xs.@count %jname = xs.@seriesname(!j) eq.ls {%iname} c {%jname} freeze(waldtable) eq.wald c(1)=c(2) ' perform wald test and freeze it into a table called WaldTable walds(!rowcounter,1) = @val(waldtable(6,2)) ' store wald statistic (which is in cell 6,2 of the table) walds(!rowcounter,2) = @val(waldtable(6,4)) ' store wald p-value (which is in cell 6,4 of the table) !rowcounter=!rowcounter+1 ' increment row counter d waldtable ' delete the table next next
Hello! In your example above, how do you label the "Walds" table? For example I want c1 to say "Wald stat", c2 = "p-value", r1 = "GDP_UNEMP", r2 = "GDP_INFL", r3 = "GDP_CPI",..etc.

Thank you!

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

Re: Labeling storage matrix

Postby EViews Gareth » Thu Oct 15, 2020 7:57 am



Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests