pc.sn {INLA} | R Documentation |
skewness
in the skew-normal
linkfunction and likelihoodFunctions to evaluate, sample, compute quantiles and
percentiles of the PC prior for the skewness
in the skew-normal link-function and likelihood
inla.pc.rsn(n, lambda = 40) inla.pc.dsn(skew, lambda = 40, log = FALSE) inla.pc.qsn(p, lambda = 40) inla.pc.psn(q, lambda = 40)
n |
number of observations |
lambda |
the rate parameter in the PC prior |
skew |
vector of evaluation points |
log |
logical. return the density in natural or log-scale. |
p |
vector of probabilities |
q |
vector of quantiles |
Defines the PC prior for the skewness
for the skew-normal linkfunction
and likelihood, where skew=0
is the base model. The skewness range from
-0.99527... to 0.99527.... ca.
inla.pc.dsn
gives the density,
inla.pc.psn
gives the distribution function,
inla.pc.qsn
gives the quantile function, and
inla.pc.rsn
generates random deviates.
havard rue hrue@r-inla.org
inla.doc("pc.sn")
x = inla.pc.rsn(100, lambda = 40) d = inla.pc.dsn(x, lambda = 40) x = inla.pc.qsn(0.5, lambda = 40) inla.pc.psn(x, lambda = 40)