dist_spec
given parameters and a distribution.R/dist_spec.R
new_dist_spec.Rd
This will convert all parameters to natural parameters before generating
a dist_spec
. If they have uncertainty this will be done using sampling.
new_dist_spec(params, distribution, max = Inf, cdf_cutoff = 0)
Parameters of the distribution (including max
)
Character; the distribution to use.
Numeric, maximum value of the distribution. The distribution will
be truncated at this value. Default: Inf
, i.e. no maximum.
Numeric; the desired CDF cutoff. Any part of the
cumulative distribution function beyond 1 minus the value of this argument is
removed. Default: 0
, i.e. use the full distribution.
A dist_spec
of the given specification.
new_dist_spec(
params = list(mean = 2, sd = 1),
distribution = "normal"
)
#> - normal distribution:
#> mean:
#> 2
#> sd:
#> 1