| conditional.edist | R Documentation |
Falls back to realize and delegates to
conditional.empirical_dist.
## S3 method for class 'edist'
conditional(x, P, ...)
x |
An |
P |
Predicate function to condition on. |
... |
Additional arguments forwarded to the predicate |
A conditional empirical_dist.
set.seed(1)
z <- normal(0, 1) + exponential(1)
z_pos <- conditional(z, function(t) t > 2)
mean(z_pos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.