density.designPrior {BayesRepDesign}R Documentation

Density method for class "designPrior"

Description

Density method for class "designPrior"

Usage

## S3 method for class 'designPrior'
density(x, ...)

Arguments

x

Object of class "designPrior"

...

Other arguments passed to stats::dnorm

Value

Returns the density function of the design prior

Author(s)

Samuel Pawel

Examples

dp <- designPrior(to = 2.3123, so = 0.1, mu = 1.1, tau = 0.2)
f <- density(dp)
tseq <- seq(1, 3.5, 0.01)
plot(tseq, f(theta = tseq), type = "l", xlab = "theta", ylab = "Design prior density")

[Package BayesRepDesign version 0.42 Index]