methods {INLAtools}R Documentation

Methods to work with a model.

Description

For a given model object query the initial, mu, log prior, graph or precision prec can be evaluated/retrieved.

Usage

initial(model)

mu(model, theta)

prior(model, theta)

graph(model, optimize)

prec(model, theta, optimize)

Arguments

model

object to represent a model

theta

numeric vector. For prior it can be a numeric matrix, with number of lines equal the size of theta and each column as a different case.

optimize

logical indicating if it is to be returned only the elements and not as a sparse matrix.

Value

the result of the desired query of the 'cgeneric' model. 'graph' and 'prec' can be either a vector (if optimize = TRUE) or a sparse matrix.

Functions

See Also

prior.cgeneric()


[Package INLAtools version 0.0.1 Index]