#include #include using namespace itpp; //These lines are needed for use of cout and endl using std::cout; using std::endl; int main() { // Setup model vec th("0.8 -0.3 0.4 0.01"); int ord=th.length(); double sqr=1; //Test constructor mat V0 = 0.001*eye(ord+1); V0(0.0)*= 10; // double nu0 = ord+1; RV thr("1","{theta_and_r }",vec_1(th.length()+1),"0"); ARX Ar(thr, V0, nu0); epdf& Ar_ep = Ar._epdf(); //Test estimation int ndat = 1000; int t,j; vec Yt(ndat); vec LL(ndat); Yt.set_subvector(0,randn(ord)); //initial values vec rgr(ord); cout << Ar_ep.mean()<