Learn R Programming

BayesSIM (version 1.0.0)

getModelDef: Get Definition of the Model

Description

Functions for identifying definition of the nimble model.

Usage

getModelDef(object)

Value

BUGS code of the model definition.

Arguments

object

A fitted object of BayesSIM or individual model.

Details

The function that contain Bayes SIM model structure in nimble. This function is for advanced users. There are several functions used in the model definition.

  • transX_fisher, transX_sp: Making B-spline basis.

  • dvMFnim: Distribution of von Mises-Fisher.

  • dKnotsSimple: Distribution of the free knots for bsSphere.

  • dunitSphere: Distribution of unit sphere.

  • alphaTheta: One-to-one polar transformation. Making index vector from individual angular vector psi.

  • expcov_gpSphere, expcov_gpPolar, expcov_gpSpike: Covariance kernel of each model. expcov_gpSphere uses squared-exponential kernel, expcov_gpPolar uses OU process kernel, and expcov_gpSpike uses squared-exponential including its own parameter, \(\lambda^{-1}\).

  • Xlinear: Making linear combination with index vector.

See Also

getVarMonitor

Examples

Run this code
simdata2 <- data.frame(DATA1$X, y = DATA1$y)
models <- bsFisher_setup(y ~ ., data = simdata2)
# Get model definition
getModelDef(models)

Run the code above in your browser using DataLab