Description Usage Arguments Value Author(s) Examples
Function for evaluating the prior quantile function.
1 2 3 4 5 6 |
p |
numeric vector with probabilities. |
prior_par |
list with prior parameters. This list needs to contain the
following elements: |
what |
character specifying for which quantity the prior quantile
function should be evaluated. Either |
hypothesis |
character specifying whether to evaluate the quantile function for a two-sided prior (i.e., "H1"), a one-sided prior with lower truncation point (i.e., "H+"), or a one-sided prior with upper truncation point (i.e., "H-"). |
numeric vector with the values of the prior quantile function.
Quentin F. Gronau
1 2 3 4 5 6 7 8 9 10 11 12 | # prior parameters
prior_par <- list(mu_psi = 0, sigma_psi = 1,
mu_beta = 0, sigma_beta = 1)
# evaluate prior quantile function
qprior(p = .1, prior_par = prior_par, what = "logor")
qprior(p = .7, prior_par = prior_par, what = "or")
qprior(p = .9, prior_par = prior_par, what = "rrisk")
qprior(p = .7, prior_par = prior_par, what = "arisk")
# also works for vectors
qprior(p = c(.1, .2, .5, .7, .9), prior_par = prior_par, what = "logor")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.