powered by
"designPrior"
Density method for class "designPrior"
# S3 method for designPrior density(x, ...)
Returns the density function of the design prior
Object of class "designPrior"
Other arguments passed to stats::dnorm
stats::dnorm
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")
Run the code above in your browser using DataLab