Exporting CUSUM Data
Posted: Thu Nov 12, 2009 8:15 pm
Does anyone know if there is a way to export the actual data from a CUSUM stability test? I need to chart it in Excel and I can't just export the chart from Eviews.
Code: Select all
call cusum("eq01") 'Please enter the name of your equation in double quotes.
subroutine cusum(string %eq)
!nobs = {%eq}.@regobs
!ncoef = {%eq}.@ncoef
!df=!nobs-!ncoef
{%eq}.rls(q,s)
series cusum=@cumsum(r_res/{%eq}.@se)
smpl @first + !ncoef @last
series ubound = .948*@sqrt(!df)*(1+2*(@trend-!ncoef+1)/!df)
series lbound = -ubound
smpl @all
endsubCode: Select all
call cusum("multivariate")
subroutine cusum(string %eq)
...
endsubCode: Select all
series cusumsq=@cumsum(r_res^2/@sumsq(r_res))