Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Program to drop insignificant variables from an equation


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Program to drop insignificant variables from an equation
Date   Wed, 20 Aug 2008 09:38:31 -0500

At 05:44 PM 8/19/2008, XandeR XandeR wrote:
Hello.
I want to make a script that automatically one by one drops insignificant variables from a regression, starting from the most insignificant one. I am currently writing MSc dissertation and I am running regression with 3 variables and 312 dummies not all of which are significant. So it would be a great help if the STATA could do it for me.
The syntax of the regression is:
As Martin W. notes, you can use stepwise regression. However, while I, unlike many, personally feel SW occasionally has some redeeming social value, with 312 dummies I imagine you will really be capitalizing on chance a lot. It also wouldn't surprise me if it takes a few years to run if it runs at all.

Depending on what these dummies are (e.g. 313 companies?) you may want to look at commands like areg or xtreg. Or, maybe you don't really need so many dummies.

For more on the problems with stepwise, see

http://www.stata.com/support/faqs/stat/stepwise.html


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW: http://www.nd.edu/~rwilliam

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index