| pc.alphaw {INLA} | R Documentation |
alpha parameter in the
Weibull likelihoodFunctions to evaluate, sample, compute quantiles and percentiles of the PC
prior for the alpha parameter in the Weibull likelihood
inla.pc.ralphaw(n, lambda = 5)
inla.pc.dalphaw(alpha, lambda = 5, log = FALSE)
inla.pc.qalphaw(p, lambda = 5)
inla.pc.palphaw(q, lambda = 5)
n |
Number of observations |
lambda |
The rate parameter in the PC-prior |
alpha |
Vector of evaluation points, where |
log |
Logical. Return the density in natural or log-scale. |
p |
Vector of probabilities |
q |
Vector of quantiles |
This gives the PC prior for the alpha parameter for the Weibull
likelihood, where alpha=1 is the base model.
inla.pc.dalphaw gives the density, inla.pc.palphaw
gives the distribution function, inla.pc.qalphaw gives the quantile
function, and inla.pc.ralphaw generates random deviates.
Havard Rue hrue@r-inla.org
inla.doc("pc.alphaw")
x = inla.pc.ralphaw(100, lambda = 5)
d = inla.pc.dalphaw(x, lambda = 5)
x = inla.pc.qalphaw(0.5, lambda = 5)
inla.pc.palphaw(x, lambda = 5)