alpha parameter in the skew-normal linkfunctionpc-sn.RdFunctions to evaluate, sample, compute quantiles and
percentiles of the PC prior for the alpha parameter
in the skew-normal link-function
inla.pc.rsn(n, lambda = 40)
inla.pc.dsn(alpha, lambda = 40, log = FALSE)
inla.pc.qsn(p, lambda = 40)
inla.pc.psn(q, lambda = 40)Defines the PC prior for the alpha parameter for the skew-normal linkfunction
where alpha=0 is the base model.
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.
inla.doc("pc.sn")
x = inla.pc.rsn(100, lambda = 40)
#> Error in xy.coords(x, y, setLab = FALSE): 'x' and 'y' lengths differ
d = inla.pc.dsn(x, lambda = 40)
#> Error in xy.coords(x, y, setLab = FALSE): 'x' and 'y' lengths differ
x = inla.pc.qsn(0.5, lambda = 40)
#> Error in xy.coords(x, y, setLab = FALSE): 'x' and 'y' lengths differ
inla.pc.psn(x, lambda = 40)
#> Error in xy.coords(x, y, setLab = FALSE): 'x' and 'y' lengths differ