bb_design_matrix: Build a raw polynomial design matrix with intercept
Description
Build a raw polynomial design matrix with intercept
Usage
bb_design_matrix(x, degree)
Value
A numeric matrix with columns 1, x, x^2, ..., x^degree.
Arguments
- x
A numeric vector.
- degree
Degree of the raw polynomial.