cgeneric {INLAtools}R Documentation

Defines a GMRF model to be used with the C interface for INLA as a latent model.

Description

This prepare data for the C type to organize data needed for building latent models which are characterized from given model parameters \theta and the the following model elements.

See details in INLA::cgeneric()

Usage

cgeneric(model, ...)

Arguments

model

object class for what a cgeneric method exists. if it is a character, a specific function will be called, for example cgeneric("iid", ...") calls cgeneric_iid(...)

...

additional arguments passed on to methods

Value

named list of cgeneric class containing the named list f that contain model (a character always equal to cgeneric), n (integer) 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.

See Also

INLA::cgeneric() and methods()


[Package INLAtools version 0.0.1 Index]