View source: R/cgeneric_graphpcor.R
cgeneric_graphpcor | R Documentation |
inla.cgeneric
for a graph, see graphpcor()
From either a graph
(see graph()
) or
a square matrix (used as a graph),
creates an inla.cgeneric
(see cgeneric()
)
to implement the Penalized Complexity prior using the
Kullback-Leibler divergence - KLD from a base graphpcor.
cgeneric_graphpcor(
graph,
lambda,
base,
sigma.prior.reference,
sigma.prior.probability,
params.id,
low.params.fixed,
debug = FALSE,
useINLAprecomp = TRUE,
libpath = NULL
)
graph |
a |
lambda |
the parameter for the exponential prior on the radius of the sphere, see details. |
base |
numeric vector with length |
sigma.prior.reference |
numeric vector with length |
sigma.prior.probability |
numeric vector with length |
params.id |
integer ordered vector with length equals
to |
low.params.fixed |
numeric vector of length |
debug |
integer, default is zero, indicating the verbose level. Will be used as logical by INLA. |
useINLAprecomp |
logical, default is TRUE, indicating if it is to be used the shared object pre-compiled by INLA. This is not considered if 'libpath' is provided. |
libpath |
string, default is NULL, with the path to the shared object. |
a inla.cgeneric
, cgeneric()
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.