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?
Need help:marginal problem of fmlogitHi I used this code to estimated average marginal effect after fmlogit fmlogit governing safety edu…
Estimate parameters from restrictions on regression parameters via GMMDear all, I am trying to replicate the market resiliency model used in the following paper: Bessemb…
Missing categories in newly created categorical variableHi Statalist. I have found that after creating a new categorical variable that not all categories a…
Fixed effects code in a regressionDear Everyone, I would like to know if my code is correct. I am doing a regression (DiD) where I ha…
How to compare the slope gradients after mixed commandDear Stata experts, I have a repeated measures study design where subjects were followed over 5 vis…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between quietly gen, quietly test and quietly regress?
Post a Comment