eval_odds | R Documentation |
Access a distribution's odds function. The odds of an event having
probability p
is p / (1 - p)
.
eval_odds(distribution, at)
enframe_odds(..., at, arg_name = ".arg", fn_prefix = "odds", sep = "_")
distribution , ... |
A distribution, or possibly multiple
distributions in the case of |
at |
Vector of values to evaluate the cdf at. Must be named when using
in |
arg_name |
For |
fn_prefix |
For |
sep |
When |
The evaluated odds in vector form (for eval_
) and data frame
or tibble form (for enframe_
).
Other distributional representations:
eval_cdf()
,
eval_chf()
,
eval_density()
,
eval_hazard()
,
eval_pmf()
,
eval_quantile()
,
eval_return()
,
eval_survival()
d <- dst_pois(1)
eval_odds(d, at = c(1, 2, 2.5))
enframe_odds(d, at = 0:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.