Description Usage Arguments Value Examples
View source: R/define_pcprior.R
This function computes the density of the PC prior for 'gamma', for a vector of values of 'gamma'; as inputs the user can pass either the scale parameter or the parameters (u,alpha)
1 |
gamma |
vector with values of the mixing parameter 'gamma'; values must be inside the (0,1) interval |
lambda |
the scale parameter of the PC prior |
u |
the upper bound for the mixing parameter 'gamma', from the statement Prob(gamma < U) = alpha |
alpha |
the probability level in Prob(gamma < U) = alpha |
log |
logical; if TRUE the log density is returned (default FALSE) |
The function returns the density, or log-density of the PC prior
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.