Learn R Programming

BayesTools (version 0.2.18)

sd.prior: Prior sd

Description

Computes standard deviation of a prior distribution.

Usage

# S3 method for prior
sd(x, ...)

Value

a standard deviation of an object of class 'prior'.

Arguments

x

a prior

...

unused arguments

See Also

prior()

Examples

Run this code
# create a standard normal prior distribution
p1 <- prior(distribution = "normal", parameters = list(mean = 1, sd = 1))

# compute sd of the prior distribution
sd(p1)

Run the code above in your browser using DataLab