Hello. I am using Stata 13, and want to use the simulate command to run a 2SLS regression many times, drawing random samples with replacement, and obtaining the first-stage R^2 and F-statistic as matrices to be saved after the simulate command (or, since the output is stored as variables, to designate each entry in each matrix as an observation for a R^2 or F-stat "variable", respectively).
However, a trial run to obtain these statistics was unsuccessful: the Stata manual states that after ivregress, estat firststage stores them in a matrix called r(singleresults). If I delete "single" and replace it with "multi", it has no problem returning Shea's partial R^2 statistics, but it claims not to be able to find the r(singleresults) matrix. If I specify the , first option after ivregress, the first-stage regression has no problem returning the first-stage R^2 and F-statistics. ivregress by itself doesn't store these statistics after estimation, so I'm a bit stuck as to how to retrieve them if not via the estat firststage postestimation command. Is there an alternative way of storing these statistics, or is this due to some other problem that can be fixed with a patch of some sort?
Thanks in advance.
However, a trial run to obtain these statistics was unsuccessful: the Stata manual states that after ivregress, estat firststage stores them in a matrix called r(singleresults). If I delete "single" and replace it with "multi", it has no problem returning Shea's partial R^2 statistics, but it claims not to be able to find the r(singleresults) matrix. If I specify the , first option after ivregress, the first-stage regression has no problem returning the first-stage R^2 and F-statistics. ivregress by itself doesn't store these statistics after estimation, so I'm a bit stuck as to how to retrieve them if not via the estat firststage postestimation command. Is there an alternative way of storing these statistics, or is this due to some other problem that can be fixed with a patch of some sort?
Thanks in advance.
Comment