Description Usage Arguments Value See Also Examples
design_matrix.polynomial
creates a design matrix H using polynomial
basis functions of degree M.
1 2 | ## S3 method for class 'polynomial'
design_matrix(x, obs, ...)
|
x |
A basis object. |
obs |
A vector of observations. |
... |
Additional parameters |
A list containing the design matrix H and the basis object. The dimensions of the matrix H are N x (M+1), where N is the length of the observations, and M is the degree of the polynomial.
design_matrix
, polynomial_basis
1 2 3 | obj <- polynomial.object(M=2)
obs <- c(0,.2,.5)
des_mat <- design_matrix(obj, obs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.