# example with uncertainty for a single parameter
create_uncertainty(
ci_limits = c(1, 3),
ci = 95,
ci_type = "confidence interval"
)
# example for multiple parameters
# lengh of list should match number of parameters
list(
shape = create_uncertainty(
ci_limits = c(1, 3),
ci = 95,
ci_type = "confidence interval"
),
scale = create_uncertainty(
ci_limits = c(2, 4),
ci = 95,
ci_type = "confidence interval"
)
)
# example with unknown uncertainty
# the function can be called without arguments
create_uncertainty()
# or give NA as the first argument
create_uncertainty(NA)
Run the code above in your browser using DataLab