Hi all! I have a questions related to the interaction effect and the exporting of the results.
We have an experiment with different types of treatments. I want to compute the interaction between the different treatments. Up to now I have being able to do this using the lincom command (I use this since the treatments are not all mutually exclusive). However, I have a problem at the moment of export the results. I can export the coefficient of the interaction and the respective standard deviation but I have not being able to export the significance of the coefficient, do you know how can I do this?
In the most simple way, this is the code that I use for a regression with 3 treatments and 2 interactions:
reg Yvarible treatment1 treatment2 treatment3 treatment1*treatment2 treatment1*treatment3
* Treatment 1 * Treatment 2
lincom treatment1 + treatment2 + treatment1*treatment2
estadd scalar skal r(estimate)
estadd scalar skalsd r(se)
* Treatment 1 * Treatmet 3
lincom treatment1 + treatment3 + treatment1*treatment3
estadd scalar skal2 r(estimate)
estadd scalar skalsd2 r(se)
esttab using "$output_paper/Name of file. csv", ///
title ( ) keep (treatment1 treatment2 treatment3) ///
stats (skal skalsd skal2 skalsd2 N adj_r2 ///
layout(@ [@] @ [@]) ///
labels () ///
se star(* 0.10 ** 0.05 *** 0.01) b(%9.2f) se(%9.2f) alignment(l) replace
The output looks pretty nice with all the arrangement, but for the estimations made using lincom command I can't add the significance in an automatic way.
Thanks so much!
We have an experiment with different types of treatments. I want to compute the interaction between the different treatments. Up to now I have being able to do this using the lincom command (I use this since the treatments are not all mutually exclusive). However, I have a problem at the moment of export the results. I can export the coefficient of the interaction and the respective standard deviation but I have not being able to export the significance of the coefficient, do you know how can I do this?
In the most simple way, this is the code that I use for a regression with 3 treatments and 2 interactions:
reg Yvarible treatment1 treatment2 treatment3 treatment1*treatment2 treatment1*treatment3
* Treatment 1 * Treatment 2
lincom treatment1 + treatment2 + treatment1*treatment2
estadd scalar skal r(estimate)
estadd scalar skalsd r(se)
* Treatment 1 * Treatmet 3
lincom treatment1 + treatment3 + treatment1*treatment3
estadd scalar skal2 r(estimate)
estadd scalar skalsd2 r(se)
esttab using "$output_paper/Name of file. csv", ///
title ( ) keep (treatment1 treatment2 treatment3) ///
stats (skal skalsd skal2 skalsd2 N adj_r2 ///
layout(@ [@] @ [@]) ///
labels () ///
se star(* 0.10 ** 0.05 *** 0.01) b(%9.2f) se(%9.2f) alignment(l) replace
The output looks pretty nice with all the arrangement, but for the estimations made using lincom command I can't add the significance in an automatic way.
Thanks so much!