[R] density

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Apr 23 15:54:57 CEST 2005


Hui Han wrote:

> Hi,
> 
> I used the density function in the R package, and got the following 
> results. I just wonder how to explain them.
> What is Min, 1st Qu, Median, and so on? I could not find an explanation 
> from help(density). The plot doesn't seem to match
> the x and y value either.
> 
> Thanks in advance for any help that you can give me!
> 
> Hui
> ------------------------------------------------------------
> Call:
>        density(x = x2, kernel = "gaussian")
> 
> Data: x2 (6437 obs.);   Bandwidth 'bw' = 0.1209
> 
>       x                 y            Min.   :-1.8856   Min.   
> :5.851e-06  1st Qu.:-0.1629   1st Qu.:2.262e-03  Median : 1.5599   
> Median :3.945e-02  Mean   : 1.5599   Mean   :1.450e-01  3rd Qu.: 
> 3.2826   3rd Qu.:2.738e-01  Max.   : 5.0054   Max.   :5.761e-01

density() estimates the density (y) at several values (x). The values 
above are the summaries (see ?summary) for those x and y values 
calculated by print.density() ...

Uwe Ligges



> ______________________________________________
> 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




More information about the R-help mailing list