Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Stata programming question


From   "Lachenbruch, Peter" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Stata programming question
Date   Wed, 17 Feb 2010 15:15:59 -0800

I would also suggest being very careful in reporting any p-values.  You are doing 44 regressions - and if you have 10 predictors, you could have 440 tests - at least do a Bonferroni adjustment to temper your enthusiasm

Tony

Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Data Analytics Corp.
Sent: Wednesday, February 17, 2010 2:17 PM
To: [email protected]
Subject: st: Stata programming question

Hi,

I have a simple programming problem, and since I'm not familiar with 
Stata programming I need some help.

I have to do 44 logit regressions and predictions where the only thing 
that changes from regression to regression is the dependent variable.  
Each regression uses a subset of the data.  At the end of each 
regression, I predict the dependent variable for the remaining portion 
of the data, saving the prediction as p_dependentVariableName.  I'd like 
to create a loop where the dependent variable will change in each pass 
through the loop and that variable name will be attached to p_ for the 
prediction.

How can I do this?  Any help is appreciated.

Thanks,

Walt



-- 
________________________

Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
[email protected]
www.dataanalyticscorp.com

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index