Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Regression loop and coefficient ooutput

From   "kelly johnson" <>
Subject   st: Regression loop and coefficient ooutput
Date   Mon, 03 Oct 2005 10:59:11 -0400

suppose i have 100 variables (var1-var100). how can i write a simple loop to regress all the variables on var1, one at a time?

specifically, i want:

reg var1 var2
reg var1 var3
reg var1 var100

additionally, how can i display ONLY the coefficients and their p-values of each regression in my log file? (all i want is a list of the relevent coefficients and their corresponding p-values). thank you!


Express yourself instantly with MSN Messenger! Download today - it's FREE!

* For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index