Skip to content
Prev 58991 / 398502 Next

determing the distribution of a sample data set etc..

On Sat, 13 Nov 2004, Ann Huxtable wrote:

            
No plot made it to the list: see the posting guide for what attachments 
are allowed.
I would use qqplots for both purposes.  qqplot will plot one dataset 
against another: see its examples.  It will also plot against another 
distribution: continuing that example

qqplot(y, qt(ppoints(200), df=5))

You could also compare two samples via the ecdfs and the 
Kolmogorov-Smirnov test (examples in the MASS ch05.R script).  But formal 
testing is not much help unless you know what sort of differences are 
interesting _a priori_ -- you would need enormous samples to distinguish 
a t_5 from a t_4, for example.