Function to construct a structure matrix for 2-dimensional CAR(1) model.
number of rows in lattice
number of columns in lattice
structure matrix of dimension (nr * nc) by (nr * nc)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.