#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, 2, "INC", 0, 2 } );
    system.Select(X_VAR, { "INFLAT", 0, 0 } );
    system.Select(U_VAR, { "Constant", 0, 0 } );

    system.SetSelSample(1953, 1, 1992, 3);
    system.Estimate();        // estimate the system (VAR)
    system.Cointegration();      // cointegration analysis
//	system.CointegrationI2();//I(2) 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;
}

