I have been trying to fit a 95% (or 99%) confidence ellipse in simple
scatterplots, but SPSS seems unable to do it. Does anyone know a macro
that can do this?
Thank you in advance for any help,
Claudia
Claudia:
Your request is not entirely clear and you don't say which version of SPSS you
are using, but if you want a CI around the least squares regression line in a 2D
scatter plot, you can do it using interactive graph in version 10.
IGRAPH
/VIEWNAME='Scatterplot'
/X1 = VAR(myXvar) TYPE = SCALE
/Y = VAR(myYvar) TYPE = SCALE
/COORDINATE = VERTICAL
/FITLINE METHOD = REGRESSION LINEAR INTERVAL(95.0) = MEAN
LINE = TOTAL SPIKE=OFF
/X1LENGTH=3.0
/YLENGTH=3.0
/X2LENGTH=3.0
/CHARTLOOK='NONE'
/SCATTER COINCIDENT = NONE.
HTH,
Chuck
-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
Chuck Cleland
Institute for the Study of Child Development
UMDNJ--Robert Wood Johnson Medical School
97 Paterson Street
New Brunswick, NJ 08903
phone: (732) 235-7699
fax: (732) 235-6189
http://www2.umdnj.edu/iscdweb/
http://members.nbci.com/cmcleland/
-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
You are right about my message being unclear. What I actually had in mind was
bivariate outliers. The 95% confidence ellipse, then, would represent the
confidence interval of a bivariate normal distribution (not OLS regression), which
would be superimposed on the scatterplot. Any observations falling outside the
ellipse would then be considered as outliers. This procedure can be easily
implemented in STATISTICA, but apparently not in SPSS (v. 10, by the way), which is
why I am looking for a macro.
Thank you for your help and apologies for being unclear,
Claudia
Mesbah.
"Claudia" <claudi...@planetaccess.com> wrote in message
news:3ABB762D...@planetaccess.com...
"Claudia" <claudi...@planetaccess.com> wrote in message
news:3ABB762D...@planetaccess.com...
"David Lindsay" <on...@use.reply-to.co.uk> wrote in message
news:O73qhAA$fCz6...@clara.co.uk...
> X-no-archive: yes
> In article <9ag8s...@enews1.newsguy.com>, Fearless <no...@no.way>
> writes
> >Use Systat, S-Plus, or R. Systat does this from a menu (as well as in
> >code), and the code to write a routine in S-Plus or R is relatively
trivial.
> >If you move to R, let me know. I've already written a simple function to
> >calculate and draw the bivariate confidence ellipses at any arbitrary
> >p-value.
> >
> Please post it sounds interesting.
>
> --
> David Lindsay
> anti spam in force use reply to address