eval_cdf | R Documentation |
Access a distribution's cumulative distribution function (cdf).
eval_cdf(distribution, at)
enframe_cdf(..., at, arg_name = ".arg", fn_prefix = "cdf", sep = "_")
distribution , ... |
A distribution, or possibly multiple
distributions in the case of |
at |
Vector of values to evaluate the representation at. |
arg_name |
For |
fn_prefix |
For |
sep |
When |
The evaluated representation in vector form (for eval_
)
with length matching the length of at
, and data frame
or tibble form (for enframe_
) with number of rows matching the
length of at
. The at
input occupies the first column,
named .arg
by default, or the specification in arg_name
;
the evaluated representations for each distribution in ...
go in the subsequent columns (one column per distribution). For a
single distribution, this column is named according to the
representation by default (cdf, survival, quantile, etc.),
or the value in fn_prefix
. For multiple distributions, unnamed
distributions are auto-named, and columns are named
<fn_prefix><sep><distribution_name>
(e.g., cdf_distribution1
).
Other distributional representations:
eval_chf()
,
eval_density()
,
eval_hazard()
,
eval_odds()
,
eval_pmf()
,
eval_quantile()
,
eval_return()
,
eval_survival()
d1 <- dst_unif(0, 4)
d2 <- dst_pois(1.1)
eval_cdf(d1, at = 0:4)
enframe_cdf(d1, at = 0:4)
enframe_cdf(d1, d2, at = 0:4)
enframe_cdf(model1 = d1, model2 = d2, at = 0:4)
enframe_cdf(
model1 = d1, model2 = d2, at = 0:4, arg_name = "value"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.