//Simple example for constructing Monthly RV and returns from daily data #include main() { decl d,r,i,n,sumr,sumrv,mn,year,file; d=loadmat("mibm.dat"); r=d[][1]; n=rows(r); print(n,"\n"); mn=zeros(n,1); year=zeros(n,1); // obtain year and months for(i=0;i