| cgeneric-class | R Documentation |
INLA.A GMRF is defined from model parameters \theta that
would parametrize a (sparse) precision matrix.
The elements of a GMR are:
graph to define the non-zero precision matrix pattern.
only the upper triangle including the diagonal is needed.
Q vector where the
first element (N) is the size of the matrix,
second element (M) is the number of non-zero elements in the upper part (including) diagonal
the remaining (M) elements are the actual precision (upper triangle plus diagonal) elements whose order shall follow the graph definition.
mu the mean vector,
initial vector with
first element as the number of the parameters in the model
remaining elements should be the initials for the model parameters.
log.norm.const log of the normalizing constant.
log.prior log of the prior for the model parameters.
cgeneric(model, ...)
## S3 method for class 'character'
cgeneric(model, ...)
## S3 method for class ''function''
cgeneric(model, ...)
## S3 method for class 'cgeneric'
cgeneric(model, ...)
## S3 method for class 'inla.cgeneric'
cgeneric(model, ...)
cgenericBuilder(...)
cgeneric_shlib(debug, package, useINLAprecomp)
model |
object class for what a |
... |
arguments passed from the
|
debug |
integer, used as verbose in debug. |
package |
character giving the name of the package
that contains the |
useINLAprecomp |
logical, indicating if it is to use the shared object previously copied and compiled by INLA. |
a method to build a cgeneric should return
a named list of cgeneric class that contains a
named list f that contains (at least):
model a character always equal to cgeneric,
n an integer greater than 0, and
cgeneric as a named list that contains the
data needed to define the model. Each element on
...$f$cgeneric is also a named list containing
ints, doubles, characters, matrices
and smatrices.
(possible) extraconstr as a named list with: A as a
n times k matrix and e as a length k vector.
(possible) bm_mapper (TO DO) mapper for inlabru package.
The cgeneric_shlib function returns a character
with the path to the shared lib.
cgeneric(cgeneric): Returns the model object unchanged.
cgeneric(inla.cgeneric): Converts a regular inla.cgeneric object to cgeneric.
The graph and Q non-zero pattern should match,
its elements should be ordered by row,
and only its upper part stored.
INLA::cgeneric() and methods()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.