powered by
compP
Compute the cdf probability at a given value for a histogram
compP(object, q)# S4 method for distributionH,numeric compP(object, q)
# S4 method for distributionH,numeric compP(object, q)
Returns a value between 0 and 1.
is an object of distributionH class
distributionH
is a numeric value
## ---- A mydist distribution ---- mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1)) ## ---- Compute the cfd value for q=5 (not observed) ---- p <- compP(mydist, 5)
Run the code above in your browser using DataLab