mean.prior {BayesTools}R Documentation

Prior mean

Description

Computes mean of a prior distribution.

Usage

## S3 method for class 'prior'
mean(x, ...)

Arguments

x

a prior

...

unused

Value

a mean of an object of class 'prior'.

See Also

prior()

Examples

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

# compute mean of the prior distribution
mean(p1)


[Package BayesTools version 0.1.3 Index]