Hello, is there an easy possiblity in R to produce a plot of the cumulative probability of a variable in R? (variable given as a sample vector) Regards, Klaus Thul
Cumulated probability plot
3 messages · klaus.thul@infineon.com, Deepayan Sarkar, Don MacQueen
On Thursday 15 May 2003 12:04, klaus.thul at infineon.com wrote:
Hello, is there an easy possiblity in R to produce a plot of the cumulative probability of a variable in R? (variable given as a sample vector)
What do you mean by cumulative probability ? If you mean the Empirical Distribution Function, try x <- rnorm(100) library(stepfun) plot(ecdf(x)) -Deepayan
Yes it is possible. Start your search for a solution with the quantile() function:
quantile(rnorm(100))
0% 25% 50% 75% 100% -2.73069396 -0.76456805 0.02988956 0.62436410 2.59762742 -Don
At 7:04 PM +0200 5/15/03, klaus.thul at infineon.com wrote:
Hello, is there an easy possiblity in R to produce a plot of the cumulative probability of a variable in R? (variable given as a sample vector) Regards, Klaus Thul
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
-------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA