Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: Residuals Index Influence Plot


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Residuals Index Influence Plot
Date   Tue, 18 May 2010 20:48:22 +0200

<>

***********
sysuse auto, clear
reg price weight  length
predict cooksD, cooksd
gen byte obs=_n

su cooksD, d

tw (connected cooksD obs) /* 
*/  (scatter cooksD obs if cooksD>`r(p90)', /* 
*/  mcolor(green) msymbol(triangle) mlabel(obs))

***********


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jeff
Sent: Dienstag, 18. Mai 2010 20:34
To: statalist@hsphsun2.harvard.edu
Subject: st: Residuals Index Influence Plot

Ladies and Gentleman,
In STATA 10, I am trying to create a residuals index influence plot, as
shown in Applied Linear Statistical Models, 4th Ed., Neter, Kutner,
Nachtsheim & Wasserman, page 382.

After creating a Cook's D variable, the STATA Syntax for the plot is as
follows:

 scatter cooksD obs, connect(1)

However, the above syntax does not label the high influence and outlier
observations in the graph.  Is there a syntax which might better label
those observations?


Thanks in advance.

Jeffrey B. Wolpin

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