pc.gamma: Compute the PC prior density for the mixing parameter 'gamma'

Description Usage Arguments Value Examples

View source: R/define_pcprior.R

Description

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)

Usage

1
pc.gamma(gamma, lambda, u, alpha, log = FALSE)

Arguments

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)

Value

The function returns the density, or log-density of the PC prior

Examples

1
pc.gamma(seq(0, 1, length.out = 10), u=0.95, alpha=0.99, log=TRUE)

massimoventrucci/inlaVP documentation built on Dec. 21, 2021, 2:51 p.m.