Hello Statalist community,
Is it possible to only show regression results if a certain variable is significant? E.g., I would love to run 100 regressions at the same time in Stata – but then Stata “mutes” all of the output tables (i.e., doesn’t display the output tables) if that variable is not significant?
I have to run robustness checks for an analysis but have a very high number of variables which I need to test as independent variable of interest. In my regression specification, I have 12 control variables (these 12 controls are the same in each model) – but for some weird reason I have ca. 1,000 different measures of my independent variable of interest. Thus, I will have to run my regression model ca. 1,000 times. Now to make it more manageable to run such a high number of regressions, I was wondering if there is any option in Stata to only show/ display regression results, when certain variables have a p-value < 0.05?
I have googled about this issue, and found the estout/ esttab commands – but did not manage to figure out if these commands can be used for what I am looking for, sadly.
Thus, I was wondering if you may have any ideas how to go about this issue: I.e., only display regression results if a certain variable is significant – and “mute” the output tables otherwise.
I am running an IV/2SLS regression, with panel data, using a fixed effects approach. Theory suggests an inverse U-shaped relationship, thus I have two independent variables of interest (IV_linear IV_squared). I would love Stata to display regression results only if both of these two independent variables (IV_linear and IV_squared) are significant, i.e., the p-value of these two variables is < 0.05.
My model looks roughly like the below, and as mentioned above, I have ca. 1,000 ways of measuring IV_linear:
Thank you so much in advance for any help or insights on this issue,
Franz
Is it possible to only show regression results if a certain variable is significant? E.g., I would love to run 100 regressions at the same time in Stata – but then Stata “mutes” all of the output tables (i.e., doesn’t display the output tables) if that variable is not significant?
I have to run robustness checks for an analysis but have a very high number of variables which I need to test as independent variable of interest. In my regression specification, I have 12 control variables (these 12 controls are the same in each model) – but for some weird reason I have ca. 1,000 different measures of my independent variable of interest. Thus, I will have to run my regression model ca. 1,000 times. Now to make it more manageable to run such a high number of regressions, I was wondering if there is any option in Stata to only show/ display regression results, when certain variables have a p-value < 0.05?
I have googled about this issue, and found the estout/ esttab commands – but did not manage to figure out if these commands can be used for what I am looking for, sadly.
Thus, I was wondering if you may have any ideas how to go about this issue: I.e., only display regression results if a certain variable is significant – and “mute” the output tables otherwise.
I am running an IV/2SLS regression, with panel data, using a fixed effects approach. Theory suggests an inverse U-shaped relationship, thus I have two independent variables of interest (IV_linear IV_squared). I would love Stata to display regression results only if both of these two independent variables (IV_linear and IV_squared) are significant, i.e., the p-value of these two variables is < 0.05.
My model looks roughly like the below, and as mentioned above, I have ca. 1,000 ways of measuring IV_linear:
Code:
xtivreg DV control_1 control_2 control_3 DV control_4 control_5 control_6 DV control_7 control_8 control_9 DV control_10 control_11 control_12 (IV_linear IV_squared = Z_linear Z_squared), fe vce(cluster FirmID)
Franz
Comment