Skip to contents

Create y, along with spatial and temporal design matrices from an observation matrix.

Usage

make_y_Vs_Vt(obs_matrix)

Arguments

obs_matrix

s by t matrix, where s is the number of locations, t is the number of times, each entry of the matrix is a nonnegative integer.

Value

A List of the following values:

  • y: Flattened version of the observation matrix, flattened in column-major order.

  • Vs: Spatial design matrix, indicates which elements in y correspond with which positions in space

  • Vt: Temporal design matrix, indicates which elements in y correspond with which positions in time