Generic method for obtaining the cdf of an object.
Arguments
- x
The object to obtain the cdf of.
- ...
Additional arguments to pass.
Value
A function computing the cumulative distribution function.
Examples
x <- normal(0, 1)
F <- cdf(x)
F(0) # 0.5 (median of standard normal)
#> [1] 0.5
F(1.96) # approximately 0.975
#> [1] 0.9750021