D.Campbell at iop.kcl.ac.uk
2006-May-09 18:09 UTC
[R] ks.test one-sample - where can I get a list of the strings specifying the distribution?
Dear all, One can use ks.test(x,y) for a one-sample kolmogorov-smirnov test: x being the data sample y being a string specifying a distribution I notice the help on ks.test does not tell you how to get such a list. Is this a hole in my R knowledge? Where can I get a list of the strings specifying the possible distributions? and more specifically What would be the string and following parameters for a uniform(0,1) distribution? regards Desmond Campbell Room C0.29, SGDP Centre Institute of Psychiatry, De Crespigny Park, London SE5 8AF Tel: +44 (0) 20 7848 0236 Fax: +44 (0) 20 7848 0866 Announcing the 7th MRC SGDP SUMMER SCHOOL 17 - 21 July 2006 with courses in a) twin model fitting, Mx b) gene expression and microarrays (Affymetrix) c) linkage, association and allied methods See http://sgdp.iop.kcl.ac.uk/summerschool/
Douglas Bates
2006-May-09 18:23 UTC
[R] ks.test one-sample - where can I get a list of the strings specifying the distribution?
On 5/9/06, D.Campbell at iop.kcl.ac.uk <D.Campbell at iop.kcl.ac.uk> wrote:> Dear all,> One can use ks.test(x,y) for a one-sample kolmogorov-smirnov test: > x being the data sample > y being a string specifying a distribution > > I notice the help on ks.test does not tell you how to get such a list. Is > this a hole in my R knowledge? > > Where can I get a list of the strings specifying the possible > distributions?help.search("distribution") gives a number of hits in the "stats" package. These provide the base set of probability distributions for R. Many others are added in other packages.> and more specifically > What would be the string and following parameters for a uniform(0,1) > distribution?"puinf" is the name. See ?punif for the possible arguments.> > regards > Desmond Campbell > > Room C0.29, SGDP Centre > Institute of Psychiatry, De Crespigny Park, London SE5 8AF > Tel: +44 (0) 20 7848 0236 > Fax: +44 (0) 20 7848 0866 > > Announcing the 7th MRC SGDP SUMMER SCHOOL > 17 - 21 July 2006 with courses in > a) twin model fitting, Mx > b) gene expression and microarrays (Affymetrix) > c) linkage, association and allied methods > See http://sgdp.iop.kcl.ac.uk/summerschool/ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
Gabor Grothendieck
2006-May-09 19:04 UTC
[R] ks.test one-sample - where can I get a list of the strings specifying the distribution?
For the ones in the stats package: help.search("distribution$", package = "stats") seems to get the right set. On 5/9/06, D.Campbell at iop.kcl.ac.uk <D.Campbell at iop.kcl.ac.uk> wrote:> > > > > > Dear all, > > One can use ks.test(x,y) for a one-sample kolmogorov-smirnov test: > x being the data sample > y being a string specifying a distribution > > I notice the help on ks.test does not tell you how to get such a list. Is > this a hole in my R knowledge? > > Where can I get a list of the strings specifying the possible > distributions? > and more specifically > What would be the string and following parameters for a uniform(0,1) > distribution? > > regards > Desmond Campbell > > Room C0.29, SGDP Centre > Institute of Psychiatry, De Crespigny Park, London SE5 8AF > Tel: +44 (0) 20 7848 0236 > Fax: +44 (0) 20 7848 0866 > > Announcing the 7th MRC SGDP SUMMER SCHOOL > 17 - 21 July 2006 with courses in > a) twin model fitting, Mx > b) gene expression and microarrays (Affymetrix) > c) linkage, association and allied methods > See http://sgdp.iop.kcl.ac.uk/summerschool/ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >
D.Campbell at iop.kcl.ac.uk
2006-May-09 19:23 UTC
[R] ks.test one-sample - where can I get a list of the strings specifying the distribution?
Douglas Thank you very much. That was very helpful. Desmond Campbell Room C0.29, SGDP Centre Institute of Psychiatry, De Crespigny Park, London SE5 8AF Tel: +44 (0) 20 7848 0236 Fax: +44 (0) 20 7848 0866 Announcing the 7th MRC SGDP SUMMER SCHOOL 17 - 21 July 2006 with courses in a) twin model fitting, Mx b) gene expression and microarrays (Affymetrix) c) linkage, association and allied methods See http://sgdp.iop.kcl.ac.uk/summerschool/ -----dmbates at gmail.com wrote: ----- To: Desmond Campbell/spnedec/Iop at IoP From: Douglas Bates <bates at stat.wisc.edu> Sent by: dmbates at gmail.com Date: 09.05.2006 07:23PM cc: r-help at stat.math.ethz.ch Subject: Re: [R] ks.test one-sample - where can I get a list of the strings specifying the distribution? On 5/9/06, D.Campbell at iop.kcl.ac.uk <D.Campbell at iop.kcl.ac.uk> wrote: > Dear all, > One can use ks.test(x,y) for a one-sample kolmogorov-smirnov test: > x being the data sample > y being a string specifying a distribution > > I notice the help on ks.test does not tell you how to get such a list. Is > this a hole in my R knowledge? > > Where can I get a list of the strings specifying the possible > distributions? help.search("distribution") gives a number of hits in the "stats" package. These provide the base set of probability distributions for R. Many others are added in other packages. > and more specifically > What would be the string and following parameters for a uniform(0,1) > distribution? "puinf" is the name. See ?punif for the possible arguments. > > regards > Desmond Campbell > > Room C0.29, SGDP Centre > Institute of Psychiatry, De Crespigny Park, London SE5 8AF > Tel: +44 (0) 20 7848 0236 > Fax: +44 (0) 20 7848 0866 > > Announcing the 7th MRC SGDP SUMMER SCHOOL > 17 - 21 July 2006 with courses in > a) twin model fitting, Mx > b) gene expression and microarrays (Affymetrix) > c) linkage, association and allied methods > See [1]http://sgdp.iop.kcl.ac.uk/summerschool/ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > [2]https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! [3]http://www.R-project.org/posting-guide.html > References 1. http://sgdp.iop.kcl.ac.uk/summerschool/ 2. https://stat.ethz.ch/mailman/listinfo/r-help 3. http://www.r-project.org/posting-guide.html
D.Campbell at iop.kcl.ac.uk
2006-May-09 19:26 UTC
[R] ks.test one-sample - where can I get a list of the strings specifying the distribution?
Dear Gabor Thanks very much. I knew about help(), but didn't know there was a help.search(). I have found what I was looking for by using it. Desmond Campbell Room C0.29, SGDP Centre Institute of Psychiatry, De Crespigny Park, London SE5 8AF Tel: +44 (0) 20 7848 0236 Fax: +44 (0) 20 7848 0866 Announcing the 7th MRC SGDP SUMMER SCHOOL 17 - 21 July 2006 with courses in a) twin model fitting, Mx b) gene expression and microarrays (Affymetrix) c) linkage, association and allied methods See http://sgdp.iop.kcl.ac.uk/summerschool/