Building a CDF dataset in R?

I'm not quite sure of the difference between CDF (cumulative distribution function) and ECDF (empirical cumulative distribution function), but I usually use the CDF graph to monitor my data.

I recently used R, and am desperate to figure out how to build the CDF and CCDF (optional CDF) of my data. All I could find is that R has ecdf, but I'm not sure if this is what I'm looking for. Building an ECDF is as simple as:

plot.ecdf(data) 

Does anyone know how to build a CDF and a CCDF dataset using R?

+6
source share
1 answer

CDF usually requires a closed form when you know or expect distribution. ECDF, on the other hand, is β€œempirical” because it comes from your data. I just answered the question about using ecdf() and Hmisc ecdf() here the other day .

More generally, you can search here using terms such as

  [r] ecdf 

in the search box to search for 'ecdf' in the R tag. In rseek.org, little is suitable for 'ccdf'. Perhaps this is the same thing as minus ECDF? If so, ecdf() in Hmisc can do this.

I hope this helps, if not please, rephrase your question, since it is not entirely clear what exactly you are looking for. Both ecdf() and ecdf() quite functional, so be sure to read their help pages.

+14
source

Source: https://habr.com/ru/post/890435/


All Articles