On Tuesday 26 August 2003 08:47, Ott Toomet wrote:
> Hi,
>
> are there any function to plot the empirical probability distribution
> function? I just don't want to reinvent the wheel...
>
try this,
regards, Adelchi
--
n <- 10
x <- rnorm(n)
plot(c(min(x)-1,sort(x), max(x+1)), c(0:n,n)/n, type="s",
xlab="data", ylab="ecdf")
rug(x)
--
Adelchi Azzalini <[EMAIL PROTECTED]>
Dipart.Scienze Statistiche, Universit� di Padova, Italia
http://azzalini.stat.unipd.it/
(please, no ms-word/ms-excel/alike attachments)
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help