#include <oxstd.h>
#import  <pcfiml>

main()
{
    decl system;

    system = new PcFiml();

    system.LoadIn7("data/data.in7");
    system.Deterministic(FALSE);
                                    // formulate the system
    system.Select(Y_VAR, { "CONS", 0, 1 } );
    system.Select(X_VAR, { "INFLAT", 0, 0 } );
    system.Select(U_VAR, { "Constant", 0, 0 } );
    system.Select(A_VAR, { "OUTPUT", 0, 1 } );
    system.Select(Y_VAR, { "INC", 0, 1 } );

    system.SetSelSample(1953, 1, 1992, 3);
    system.Estimate();        // estimate the system (VAR)

//	system.Cointegration();      // cointegration analysis
//
//    system.Chow(1980, 1);                    // some tests
    system.Portmanteau(12);
    system.NormalityTest();
    system.ArTest(1, 5);
    system.HeteroTest(FALSE, FALSE);
    system.HeteroTest(FALSE, TRUE);

    delete system;
}

