View source: R/validate_prior_distributions.R
validate_prior | R Documentation |
Validates a single user-defined prior to ensure it specifies a valid distribution supported by Nimble and has the correct parameters for the distribution.
validate_prior(prior_name, prior_string)
prior_name |
A string representing the name of the prior (e.g., |
prior_string |
A string specifying the prior distribution (e.g., |
Returns TRUE
if the prior is valid. Throws an error if the prior is invalid.
validate_prior("prior_mean", "dnorm(0, 0.001)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.