Learn R Programming

CARrampsOcl (version 0.1.4)

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

Description

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

Usage

makeQ(nr, nc)

Arguments

nr
number of rows in lattice
nc
number of columns in lattice

Value

    Examples

    Run this code
    # 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)

    Run the code above in your browser using DataLab