Dynamically get F stats for hettest on each regression
Posted: Tue Apr 09, 2013 6:16 am
Hi,
I am currently creating equations dynamically within a program, and then storing the results of this to a table. I am fine to collect the t stats etc. by using the relevant commands on the equation object which I have created.
However, I am having some issues with trying to collect (in my table) the results of hettest on each of those objects.
I would like to capture the F stat along with the F stat's associated p value in my table.
I can use the following code to do a Breusch-Pagan test on an equation object (with the auxillary regression having three independent variables c ds_eon and d_eon):
However, I really don't have a clue as to how to record the F stat (and it's associated p value) as one of the values in my table.
I have tried @f, but this brings up the F stat for the actual regression rather than the auxillary one used to test for heteroscedasticity.
Any help as to how I can do this would be most appreciated!
Many thanks,
Ben
I am currently creating equations dynamically within a program, and then storing the results of this to a table. I am fine to collect the t stats etc. by using the relevant commands on the equation object which I have created.
However, I am having some issues with trying to collect (in my table) the results of hettest on each of those objects.
I would like to capture the F stat along with the F stat's associated p value in my table.
I can use the following code to do a Breusch-Pagan test on an equation object (with the auxillary regression having three independent variables c ds_eon and d_eon):
Code: Select all
z_aus_eon.hettest(type=BPG) c ds_eon d_eon
I have tried @f, but this brings up the F stat for the actual regression rather than the auxillary one used to test for heteroscedasticity.
Any help as to how I can do this would be most appreciated!
Many thanks,
Ben