fix_parameters | R Documentation |
<dist_spec>
If the given <dist_spec>
has any uncertainty, it is removed and the
corresponding distribution converted into a fixed one.
## S3 method for class 'dist_spec'
fix_parameters(x, strategy = c("mean", "sample"), ...)
x |
A |
strategy |
Character; either "mean" (use the mean estimates of the
mean and standard deviation) or "sample" (randomly sample mean and
standard deviation from uncertainty given in the |
... |
ignored |
A <dist_spec>
object without uncertainty
# An uncertain gamma distribution with mean 3 and sd 2
dist <- LogNormal(
meanlog = Normal(3, 0.5), sdlog = Normal(2, 0.5), max = 20
)
fix_parameters(dist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.