Learn R Programming

BayesRepDesign (version 0.42)

density.designPrior: Density method for class "designPrior"

Description

Density method for class "designPrior"

Usage

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

Value

Returns the density function of the design prior

Arguments

x

Object of class "designPrior"

...

Other arguments passed to stats::dnorm

Author

Samuel Pawel

Examples

Run this code
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")

Run the code above in your browser using DataLab