storing the sum of lags for multiple variables and models
Posted: Wed Jul 23, 2014 11:11 am
I'm working on a project in which I need to compare statistics for PDL regressions over many different models. I would like to store the sum of lags coefficient and t-Statistic for specific variables in each model. So far, I have been able to store the Akiake info criterion, Schwarz criterion and Durbin-Watson statistic in column vectors for each model. I would also like to be able to store the sum of lags coefficient and t-Statistic for two specific variables in each of 24 models.
My code stores 24 different PDL regression results in eq1 through eq24. At the end of the program I included these statements to store some statistics. Is there a similar statement I could write to save the sum of lags coefficient and t-Statistic for either individual or all variables in each model?
'Saving relevant statistics in column vectors
vector(24) akaike
for !j=1 to 24
akaike(!j)= eq!j.@aic
next
vector(24) schwarz
for !j=1 to 24
schwarz(!j)= eq!j.@schwarz
next
vector(24) durbinwatson
for !j=1 to 24
durbinwatson(!j)= eq!j.@dw
next
It seems like these coefficients and t-Statistics would have to get stored in a matrix with dimensions (24 x # of variables), but I'm not sure how to specifically access them.
Thanks for your help
My code stores 24 different PDL regression results in eq1 through eq24. At the end of the program I included these statements to store some statistics. Is there a similar statement I could write to save the sum of lags coefficient and t-Statistic for either individual or all variables in each model?
'Saving relevant statistics in column vectors
vector(24) akaike
for !j=1 to 24
akaike(!j)= eq!j.@aic
next
vector(24) schwarz
for !j=1 to 24
schwarz(!j)= eq!j.@schwarz
next
vector(24) durbinwatson
for !j=1 to 24
durbinwatson(!j)= eq!j.@dw
next
It seems like these coefficients and t-Statistics would have to get stored in a matrix with dimensions (24 x # of variables), but I'm not sure how to specifically access them.
Thanks for your help