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
Linear regression with year as predictor variableHi all, I am new to Stata and a somewhat of statistics novice. I am working on a project where I am…
Collect regression results in a loopI am trying to run a loop of regressions, save coefficient estimates, and use saved results as a dta…
compare outcomesHi statalist, I am a new student in STATA program I have a list of patients with different variables…
Identifying and replacing duplicate values across multiple string variablesHi. My data has each row identified by an id variable and multiple language string variables that li…
Data manipulationI have a dataset with 3 variables and it looks like: year diff1 diff2 1970 1 0.5 1980 5 10 …
Subscribe to:
Post Comments (Atom)
0 Response to Exporting data from multiple univariate regressions into one big table in excel
Post a Comment