makeQ: Function to construct a structure matrix for 2-dimensional...

Description Usage Arguments Value Author(s) Examples

View source: R/makeQ.R

Description

Function to construct a structure matrix for 2-dimensional CAR(1) model.

Usage

1
makeQ(nr, nc)

Arguments

nr

number of rows in lattice

nc

number of columns in lattice

Value

structure matrix of dimension (nr * nc) by (nr * nc)

Author(s)

Kate Cowles

Examples

1
2
3
# Construct 300 x 300 structure matrix for intrinsic CAR(1) for
# lattice data on a rectangle with 15 rows and 20 columns
makeQ( 15, 20)

CARrampsOcl documentation built on May 2, 2019, 3:27 a.m.