Internal function for generating a dist_spec
given parameters and a distribution.
Source: 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.
Examples
new_dist_spec(
params = list(mean = 2, sd = 1, max = Inf),
distribution = "normal"
)
#> - normal distribution:
#> mean:
#> 2
#> sd:
#> 1