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
Problem with xtivreg2: variable not found, but created.Hi! I am trying to run the loop below but it returns error r(111) lt3m_qe not found . However, this…
skewness from moments2 into dataHi, I am trying to use "moments2" and use the skewness, kurtosis, and SD as my data. The following …
Population Census Data: Variable Preparation for PCA with sample weightsHello all, I am new to the Stata Community and working on the 2016 Canadian census of population mi…
Threshold regression for balanced/unbalanced panel dataHello all, My current project aims to test whether gdp growth rate varies with different regimes of…
How to use marginsplot in lagged dependent variable modelsIt seems that Stata margins command does allow to include a lagged DV as a control. In the following…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting data from multiple univariate regressions into one big table in excel
Post a Comment