Skip to content

Estimating the ECDF

3 messages · Waltenegus Dargie, R. Michael Weylandt, Rui Barradas

#
On Tue, Sep 18, 2012 at 8:50 PM, Waltenegus Dargie
<waltenegus.dargie at gmail.com> wrote:
Waltengus,

This is really terribly vague: perhaps you could say more about what
information you have and what sort of curve fitting you're looking
for? Once you've clarified your question, perhaps look into making us
a small reproducible example of what you have and what you want:

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Next time, also don't post in HTML as it messes all sorts of things up.

Cheers,
Michael
#
Hello,

I'm not sure I understand the question, but is it something like this?

set.seed(3648)
x <- rnorm(100)
plot(ecdf(x), cex = 0.5)

# Now create a function; don't use
# uppercase F, it's a symbol for FALSE.
f <- ecdf(x)
f(0) # Should be near 0.5


Hope this helps,

Rui Barradas
Em 18-09-2012 20:50, Waltenegus Dargie escreveu: