density.designPrior {BayesRepDesign} | R Documentation |
"designPrior"
Density method for class "designPrior"
## S3 method for class 'designPrior'
density(x, ...)
x |
Object of class |
... |
Other arguments passed to |
Returns the density function of the design prior
Samuel Pawel
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")