Constructs the design model matrix corresponding to the given design and
basis. Used by fit.ssm.
construct.dmm(basis, design, P)An \(N x d\) matrix where each row is an exponent vector.
An \(n x d\) matrix where each row is a design point.
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.
The \(n x N\) design model matrix.
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.