Record Schwarz, Akaike, HQ
Posted: Mon Jun 27, 2011 9:35 am
I am running various regressions and comparing the SC, AC, HQC of the regressions. I always need to write the SC, AC, HC on a paper and after run again and do it again. Alternatively I could freeze the output of 10 regressions and compare it like that. You can see it is not efficient. How could I create a program, that would run 10 ls regressions and record the SC, AC, HC as an output (it could be a matrix output, but any other output will do or might be better)?
For simplicity assume that there are 5 ls:
ls aaa c bbb
ls aaa c bbb ddd
ls aaa c bbb ddd eee
ls aaa c bbb ddd eee fff
ls aaa c bbb ddd eee fff ggg
And I would expect an output like this:
X [AC] [SC] [HQC]
1 [2.1] [2.7] [1.9]
2 [2.0] [2.5] [1.4]
3 [2.2] [2.7] [1.5]
4 [2.3] [2.8] [1.6]
5 [2.4] [2.9] [1.8]
This would make it easy to write all the equations I want to test into the program, and then just run the programme and see all the criteria as an output, spool, or matrix. It could also record the R2 there etc. Note: I will make sure all the equations have the same sample for the comparison (that is clear).
Is it possible to do this? Thanks!
For simplicity assume that there are 5 ls:
ls aaa c bbb
ls aaa c bbb ddd
ls aaa c bbb ddd eee
ls aaa c bbb ddd eee fff
ls aaa c bbb ddd eee fff ggg
And I would expect an output like this:
X [AC] [SC] [HQC]
1 [2.1] [2.7] [1.9]
2 [2.0] [2.5] [1.4]
3 [2.2] [2.7] [1.5]
4 [2.3] [2.8] [1.6]
5 [2.4] [2.9] [1.8]
This would make it easy to write all the equations I want to test into the program, and then just run the programme and see all the criteria as an output, spool, or matrix. It could also record the R2 there etc. Note: I will make sure all the equations have the same sample for the comparison (that is clear).
Is it possible to do this? Thanks!