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?
stata help with multivariate regression and interaction termsArray age – age of the poulation male – a dummy variable for identifying as male black – total popu…
option 3aster not allowedHi I was trying to run this regression but i am getting this error "option 3aster not allowed", i in…
STATA date formatDear All, Can you help me in converting this date format ----------------------- copy starting fro…
Proportional hazard modelHi everyone, I have a question about the proportional hazard model. My data looks as below: Code:…
Error opening Excel after using merge option on -putexcel- commandI'm trying to use the -putexcel- command to create tables with a header at the top. I found the -tab…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between quietly gen, quietly test and quietly regress?
Post a Comment