prob_left | R Documentation |
Probability to the left or right of a number, inclusive or not.
prob_left()
is a more general cdf defined using either <
or <=
, and
prob_right()
is a more general survival function defined using either
>
or >=
.
prob_left(distribution, of, inclusive)
prob_right(distribution, of, inclusive)
distribution |
Distribution to find probabilities of. |
of |
Find the probability to the left or right of this number. Could be a vector. |
inclusive |
Should |
A vector of probabilities.
d <- dst_pois(5)
prob_left(d, of = 3, inclusive = TRUE)
prob_left(d, of = 3, inclusive = FALSE)
prob_right(d, of = 0:3, inclusive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.