Just type "ecdf" at a command prompt like you type "pi" and
get back
3.141593. hope this helps. spencer graves
p.s. Have you looked at "An Introduction to R" [available in the
upper
left after help.start() or on www.r-project.org -> Documentation ->
Manuals?
#################################
Yair Benita wrote:
> I wanted to get the equation of the cumulative distribution. Looking
through the manual I found the ecdf function used it as follows:
>
> x contains about 3000 real values. Here is my command line:
>
> plot.ecdf(ecdf(x))
>
> This gives me a plot with an exponential curve with a y axis of Fn(x)
and I would like to see the equation of the function plotted.
>
> How can you type ecdf with no parantheses? it gives me an error. Can
you give me an example?
>
> Thanks,
> Yair
>
>
##########################
Did you try typing "ecdf" (without the parentheses identifying
it
as a function) at a prompt? When I did that just now, I found that
"ecdf" calls "approxfun", and I could get a function
definition by
typing that.
hope this helps.
spencer graves
p.s. PLEASE do read the posting guide!
"http://www.R-project.org/posting-guide.html". You might get the
answer
quicker from following this guide. If not, the exercise might help you
formulate your question in a way that might elicit more useful
response(s).
Yair Benita wrote:
> Hi,
> Using the ecdf (Empirical Cumulative Distribution Function) one can
> compute a plot. I was wondering if there is a way to get the equation
> used to draw the plot.
>
> thanks,
> Yair
>
> ______________________________________________
> 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