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?
xtlsdvc and xtbcfeHello, I am trying to fit a dynamic model determinants of corporate cash holdings for ~1700 firms a…
Relative risk from nlcom different from regression outputHi, I have a similar question to one posed a few years ago in this thread. I am running an adjusted…
Free text processing of medical notes I am attempting to search pathology reports, which are in string format, to identify only those whi…
Generating new variables using an if functionI am trying to sort income based on marital Status and then generate new adjusted income based on ta…
Adjusting the DSS Stata 'Prediction of normal returns formula'Dear Statalists, in order to be able to calculate non-parametric significance tests when doing an e…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between quietly gen, quietly test and quietly regress?
Post a Comment