Categories
status

Secondary axis in R plot(x) par(new = …

Secondary axis in R

plot(x)
par(new = T)
plot(y, axes = F, xlab = '', ylab = '')
axis(4)
Categories
status

Compute or plot an empirical cumulative …

Compute or plot an empirical cumulative distribution function
ecdf()

Categories
status

Maximum-likelihood fitting of univariate …

Maximum-likelihood fitting of univariate distributions
fitdistr()

Categories
status

rug() presents the the data on the x-axi …

rug() presents the the data on the x-axis

Categories
status

Difference between density() and bkde() …

Difference between density() and bkde()
They are also different in the default bandwidth.
Venables, W. N. and B. D. Ripley, (2002), Modern Applied Statitics with S (4th ed.), pp126-128

Categories
status

Difference between density() and bkde(); …

Difference between density() and bkde(); two kernel density estimation functions in R

On Mon, 18 Jan 2010, Mario Valle wrote:

> Any advice when to use denstity() and when the KernSmooth package bkde() to
> smooth a histogram?
>
> No specific problem to use either one, but I’m curious why there are two so
> similar implementations.

They are fundamentally different. density() uses FFT: bkde() does
not and is more flexible as a result Both use binning.

There are only a limited number of ways to implement something as
simple as KDE, and most of them have appeared in R/S-PLUS. Remember
that KernSmooth was written for S-PLUS and predates R (at least in
anything like its current form).

> Thanks!
> mario
>
> —
> Ing. Mario Valle
> Data Analysis and Visualization Group | http://www.cscs.ch/~mvalle
> Swiss National Supercomputing Centre (CSCS) | Tel: +41 (91) 610.82.60
> v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
… [show rest of quote]


Brian D. Ripley, [hidden email]
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595