Computes standard deviation
of a prior distribution.
# S3 method for class 'prior'
sd(x, ...)
Arguments
- x
a prior
- ...
unused arguments
Value
a standard deviation of an object of class 'prior'.
Details
The standard deviation is the square root of var(); see
var() for the precision check of truncated normal
priors.
Examples
# create a standard normal prior distribution
p1 <- prior(distribution = "normal", parameters = list(mean = 1, sd = 1))
# compute sd of the prior distribution
sd(p1)
#> [1] 1