# \donttest{
# conditional density of the innovations: normal
start_val<-c(0.01,0.80,0.05,0.05,0,0,1.1,0,1.1)
r_t<-sp500['2005/2010']
X<-rv5['2005/2010']^0.5
mv_m<-mv_into_mat(r_t,diff(indpro),K=12,"monthly")
sum(DAGM_X_loglik(start_val,r_t,X,mv_m,K=12,distribution="norm"))
# }
Run the code above in your browser using DataLab