View source: R/utils-helpers.R
| validate_sd_spec | R Documentation |
Checks whether the input is a valid positive numeric scalar or one of the
supported distributional list specifications. Called automatically by
brms_inla_power() before the simulation loop; can also be called
directly for interactive validation.
validate_sd_spec(x, arg_name = "x")
x |
A positive numeric scalar or a named list with element |
arg_name |
Character string used in error messages (default |
Supported distributional formats:
list(dist = "halfnormal", sd = X, location = Y) — draws
|Normal(location, sd)|; location defaults to 0.
list(dist = "lognormal", meanlog = X, sdlog = Y) — draws from a
log-normal distribution.
list(dist = "uniform", min = X, max = Y) — draws from Uniform(min, max);
requires min >= 0.
x, invisibly. Called for its side effects (stopping on invalid
input).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.