[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: detecting a dropped variable programatically
e(df_m) will tell you how many degrees of freedom your model has. If
this is less than the number of predictors (the columns of e(b) minus 1)
then something has been dropped.
[mailto:firstname.lastname@example.org] On Behalf Of Mark
Sent: 19 May 2006 08:55
Subject: st: detecting a dropped variable programatically
I am writing a program that runs through potentially tens of thousands
of regressions. During this evaluation, I sometimes end up with
collinear variables. (Not really, but very nearly collinear, and so
numerically stata ends up thinking they are.) I know that I can look
thru the e(V) matrix looking for a value of zero on the diagonal. But
doing this for every regression means another loop inside the main loop
that may run tens of thousands of times.
Does anyone know of a way to detect a dropped variable without a loop?
What would be nice is if the regression routine would return an
indicator of a dropped variable. But I dont see this, nor any obvious
way to find it based on the return values except for searching thru
e(V). Any ideas appreciated.
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
* For searches and help try: