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
replacing variable value via a loop conditioning on the contents of other variablesHello, I have dataset which has 14 variables relating ethnic group: eth1 eth2 eth3...eth14. The va…
FEM categorial variable outputHello, In my fixed effect model with the effect of parenting styles (categorial) on problemativ beh…
Store result from calculation to a matrix?Hi all! I'm trying to compute the jackknife variance estimate using the formula from Hansen's "Econo…
countingHello, I have a database in Stata and I need to count the number of nodules in each patient. The fir…
How to capture the results of lookfor_all to local files?Hi, I am searching for (lookfor_all from ssc) all datasets in a directory that contain the target v…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting data from multiple univariate regressions into one big table in excel
Post a Comment