Re: [R] Help interpreting density().

2008-07-29 Thread Bill.Venables
://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 July 2008 6:09 PM To: r-help@r-project.org; Venables, Bill (CMIS, Cleveland) Subject: RE: [R] Help interpreting density(). Sorry, poor example. I started with normal deviates and

Re: [R] Help interpreting density().

2008-07-29 Thread Mark Difford
Hi Kevin, Clicking on the link I sent gets me there (?), though things are pretty slow at the moment. Perhaps try this related link, and from it get back to the first one: http://en.wikipedia.org/wiki/Density_estimation You can also get to this via histogram, so search for that in Wiki, and the

Re: [R] Help interpreting density().

2008-07-29 Thread rkevinburton
Sorry I tried WikiPedia and only found: Wikipedia does not have an article with this exact name. I will try to find some other sources of information. Kevin Mark Difford <[EMAIL PROTECTED]> wrote: > Hi Kevin, >> I still have my original question. How does the output relate to >> estimat

Re: [R] Help interpreting density().

2008-07-29 Thread Mark Difford
Hi Kevin, >> I still have my original question. How does the output relate to >> estimating the parameters >> of a given density? I read that for a gausian kernal: This isn't the place for such questions: you need to do some _basic_ reading on the subject so that you begin to understand somethi

Re: [R] Help interpreting density().

2008-07-29 Thread rkevinburton
Sorry, poor example. I started with normal deviates and jumped without thinking to Poisson. The main crux of the question is how does the output of density relate to the parameters that describe some of the standard distributions (mean and std for normal, lambda for Poisson, n and p for Binomial

Re: [R] Help interpreting density().

2008-07-29 Thread rkevinburton
OK. Thank you for pointing out my mistake. I still have my original question. How does the output relate to estimating the parameters of a given density? I read that for a gausian kernal: bw.nrd0 implements a rule-of-thumb for choosing the bandwidth of a Gaussian kernel density estimator. It de

Re: [R] Help interpreting density().

2008-07-28 Thread Mark Difford
Hi Kevin, >> The documentation indicates that the bw is essentially the sd. >> > d <- density(rnorm(1000)) Not so. The documentation states that the following about "bw": "The kernels are scaled such that this is the standard deviation of the smoothing kernel...," which is a very different thing

Re: [R] Help interpreting density().

2008-07-28 Thread Bill.Venables
You should read the documentation more carefully. The bw is not "essentially the sd". To quote the documentation the bw is "the smoothing bandwidth to be used. The kernels are scaled such that this is the standard deviation of the smoothing kernel." That is a very different thing. You are confu