Learn R Programming

DPCD (version 0.0.1)

makeSphericalSigma: Create a spherical covariance matrix

Description

A nimbleFunction that returns a diagonal matrix with all diagonal entries equal to tau_sq. This function is not intended to be called by users of the package directly.

Usage

makeSphericalSigma(tau_sq, p)

Value

A p x p spherical covariance matrix.

Arguments

tau_sq

The variance parameter for the spherical covariance matrix.

p

The dimension of the covariance matrix.

See Also

nimbleFunction for information on nimbleFunctions.

Examples

Run this code
makeSphericalSigma(tau_sq = 0.1, p = 3)

Run the code above in your browser using DataLab