Hi all,
I have used a foreach loop to do univariate logistical regression of multiple variables with one particular variable of interest.
Currently, I've been manually inputting data from these regression tables into a big table in excel, but I can imagine the process will be more tedious for larger samples i'll have to deal with down the line.
I am wondering if I could add anything to the foreach loop that will help me create a big table containing the coefficient and some statistics (p-value, 95% confidence interval etc) from each of the regressions I have done, preferrable in excel.
If it helps, here is an example code, similar to what I have done so far:
foreach x of varlist var1-var20 {
regress var21 `x'
}
Related Posts with Exporting data from multiple univariate regressions into one big table in excel
tempname frames questionCan someone explain why posting to a temporary frame doesn't work in the code below whereas posting …
r(459);unconditional standard errors derived assuming full estimation sample; indepvars dropped observations from the estimation sampleHi, I am estimating (using Stata 15) an eprobit model with an endogenous treatment, for which I had…
merging panel datadear, I have 2 panel datasets which I want to merge. One dataset contains values from 2009 to 2015 …
What is the difference between Moran I and Pesaran and free's cross sectional dependence tests?Dear readers, I have a question about spatial econometrics: I run a Moran I test on my residuals fro…
Ivreg2 giving negative centred r2 values and very large confidence intervalsHello Statalist I am very inexperienced with stata and I am currently trying to test a hypothesis u…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting data from multiple univariate regressions into one big table in excel
Post a Comment