setPrecision: Set precision matrix

Description Usage Arguments Examples

Description

Updates precision matrix from MVST object.

Usage

1
2
3
4
5
6
7
setPrecision(.Object, Q)

## S4 method for signature 'GMRF'
setPrecision(.Object, Q)

## S4 method for signature 'GMRF_basis'
setPrecision(.Object, Q)

Arguments

.Object

object whose precision matrix will be changed

new

precision matrix

Examples

1
2
3
4
my_RW <- GMRF_RW(n=10, order=1, precinc =2, name="my_first_RW")
Q <- getPrecision(my_RW)
my_RW2 <- setPrecision(my_RW,Q + Imat(n=10))
Q2 <- getPrecision(my_RW2)

shazhe/mvst0 documentation built on May 29, 2019, 9:20 p.m.