Learn R Programming

cocons (version 0.1.5)

getDesignMatrix: Create an efficient design matrix based on a list of aspect models

Description

Creates a unique design matrix based on model specification for each of the different potentially spatially varying aspects.

Usage

getDesignMatrix(model.list, data)

Value

(list) a list with two elements: a design matrix of dimension (n x p), and a par.pos object, indexing columns of the design matrix to each of the spatially-varying functions.

Arguments

model.list

(list) a list of formulas, one for each source of nonstationarity, specifying the models.

data

(data.frame) a data.frame.

Author

Federico Blasi