Hi Tom,
Thanks for the post, but it still gives the same error message. I think it has something to do with the following part:
- Code: Select all
do time=start,end
compute %MSVARPMat(time)
compute thisEntry=%zeros(nstates,nstates)
do k=1,EMSize
compute thisEntry(EMLagState(k,1),EMLagState(k,2))+=EMPTSM(time)(k)
end do k
compute w11(time)=p(1,1)*(1-p(1,1))*(thisEntry(1,1)+thisEntry(2,1))
compute w22(time)=p(1,2)*(1-p(1,2))*(thisEntry(2,2)+thisEntry(1,2))
compute l11(time)=(thisEntry(1,1)- p(1,1)*(thisEntry(1,1)+thisEntry(2,1)))/w11(time)
compute l22(time)=(thisEntry(2,2)-(1-p(1,2))*(thisEntry(2,2)+thisEntry(1,2)))/w22(time)
end do time
I am not sure, but it feels like EMSize and EMLagState should be replaced with MSVARFilterSize and MSVARFilterLagState respectively...