Learn R Programming

SSM (version 1.0.1)

construct.dmm: Construct the design model matrix

Description

Constructs the design model matrix corresponding to the given design and basis. Used by fit.ssm.

Usage

construct.dmm(basis, design, P)

Arguments

basis

An \(N x d\) matrix where each row is an exponent vector.

design

An \(n x d\) matrix where each row is a design point.

P

An \(N x N\) change of basis matrix from a monomial basis to a polynomial basis. Note that each column corresponds to a polynomial term.

Value

The \(n x N\) design model matrix.

Details

The argument basis defines a monomial basis and the change of basis matrix P is used to convert this to a polynomial basis. The function returns the design model matrix corresponding to this polynomial basis and the design given by design. Note that if P is the appropriately sized identity matrix then the model basis a monomial one.