For loop / test for equality

For questions regarding programming in the EViews programming language.

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

A0BL7N
Posts: 1
Joined: Sat Apr 28, 2012 8:02 am

For loop / test for equality

Postby A0BL7N » Sat Apr 28, 2012 8:18 am

Hello,

I have a sample of 640 data series, which are subdivided into 320 pairs. I now need to run tests for equality of the means and medians of each of these pairs.
The manual way to do this for the first pair is:

Select Series1 and Series2 --> Open as group --> View --> Test for equality --> Median

The code to do this for the first pair is:

group a Series1 Series2
show a.testbtw(median)

In order to be more time efficient, I now would like to create a program which contains a for loop in order to perform the different tests of the 320 pairs automatically.

Could anybody help me on this? Many thanks in advance.

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

For loop / test for equality

Postby EViews Gareth » Sat Apr 28, 2012 8:44 am

What is the naming convention between the 640 series? Is the a way to logically connect the pairs?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests