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
Multiple imputation problemThis is a specific problem emerged in my previous post "Reshape wide". The data are the following: …
A Statalist glossary This is a revision of a glossary that appeared on 1 January 2011. Striking (to me any way) that mos…
How to set 3 way panel and run triple difference regression?Hi everyone, I've got a dataset which varies across time, across country and across products (trade …
Coloring bars by group- asyvars alternative?I am trying to color bars based on the values of a categorical variable As described here: https://…
Concatenating variables as a function of other variablesDear all, I have a database comprised of an id variable (siteid), two variables that indicate the l…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting data from multiple univariate regressions into one big table in excel
Post a Comment