Help with MAT13 error
Posted: Fri Mar 20, 2020 7:46 am
I am geting the following error:
## MAT13. Store into Out-of-Range Matrix or Series Element
The Error Occurred At Location 283, Line 8 of loop/block
The last error shows that the problem is in the last line below at "end".
Any help to solve the problem please?
oz
** compute here IRF and bands for each variable
** 4 = US gdp; 8 = JP gdp; 12 = DE gdp ; 16 = UK; 20 = FR gdp; 24 = IT gdp; 28 = CA gdp
dec vect[series] upper(nvar) lower(nvar) resp(nvar)
comp j = 16
do j = 1,nvar
smpl 1 ndraws
compute minlower=maxupper=0.0
clear lower(j) upper(j) resp(j)
do i=1,nstep
set work 1 ndraws = responses(t)(j,i)
compute frac=%fractiles(work,||.05,0.5,.95||)
compute lower(j)(i)=frac(1)
compute upper(j)(i)=frac(3)
compute resp(j)(i)=frac(2)
end do i
compute maxupper=%max(maxupper,%maxvalue(upper(j)))
compute minlower=%min(minlower,%minvalue(lower(j)))
/*
smpl 1 nstep
graph(ticks,min=minlower,max=maxupper,number=0) 3 j i
# resp(j)
# upper(j) / 2
# lower(j) / 2
*/
end
## MAT13. Store into Out-of-Range Matrix or Series Element
The Error Occurred At Location 283, Line 8 of loop/block
The last error shows that the problem is in the last line below at "end".
Any help to solve the problem please?
oz
** compute here IRF and bands for each variable
** 4 = US gdp; 8 = JP gdp; 12 = DE gdp ; 16 = UK; 20 = FR gdp; 24 = IT gdp; 28 = CA gdp
dec vect[series] upper(nvar) lower(nvar) resp(nvar)
comp j = 16
do j = 1,nvar
smpl 1 ndraws
compute minlower=maxupper=0.0
clear lower(j) upper(j) resp(j)
do i=1,nstep
set work 1 ndraws = responses(t)(j,i)
compute frac=%fractiles(work,||.05,0.5,.95||)
compute lower(j)(i)=frac(1)
compute upper(j)(i)=frac(3)
compute resp(j)(i)=frac(2)
end do i
compute maxupper=%max(maxupper,%maxvalue(upper(j)))
compute minlower=%min(minlower,%minvalue(lower(j)))
/*
smpl 1 nstep
graph(ticks,min=minlower,max=maxupper,number=0) 3 j i
# resp(j)
# upper(j) / 2
# lower(j) / 2
*/
end