Hi guys, I'm trying to replicate a paper but could not understand the meaning of the following commands. I tried googling it but still, the meaning is not clear to me.
foreach x in N_baseline {
qui gen `x'_T1=`x' if vote==1
qui gen `x'_T2=`x' if vote==0
foreach k in T1 T2 {
egen m_`k'=mean(`x'_`k')
local m_`k' = m_`k'
egen sd_`k'=sd(`x'_`k')
local sd_`k'= sd_`k'
}
quietly reg `x' vote, r
quietly test vote = 0
gen p_1= r(p)
local p_1 = p_1
Related Posts with Difference between quietly gen, quietly test and quietly regress?
"Convergence not achieved" - xtlogitHi all, I have a problem when performing an xtlogit regression (I've gone through a couple of threa…
Accounting Research suggestions!Sorry this might be a little bit long post and not related to the forum at all. I do not know. I am …
Exporting results of tabulate to excelHi Statalist, Please consider the following data: Code: * Example generated by -dataex-. To instal…
Marginal effect and confidence interval of the model with an interaction termDear all, I am reading a paper that analyses a panel data model with an interaction term. I wonder …
Why does my logistic regression model fail the Homer and Lemeshow's test?Hello everyone, I apologize in advance if my questions seem incredibly dull. Trying to teach myself …
Subscribe to:
Post Comments (Atom)
0 Response to Difference between quietly gen, quietly test and quietly regress?
Post a Comment