View source: R/model.matrix.stepmented.r
| model.matrix.stepmented | R Documentation |
This function builds the model matrix for stepmented fits.
## S3 method for class 'stepmented'
model.matrix(object, type=c("cdf","abs","none"), k=NULL, ...)
object |
A stepmented fit |
k |
The (negative) exponent of the sample size to approximate the absolute value; see |
type |
The approximation for the indicator function/absolute value. If |
... |
additional arguments |
If type="none", model.matrix.stepmented return the design matrix including the indicator function values and ignoring the psi terms.
The design matrix for a stepmented regression model with the specified formula and data
Vito Muggeo
See Also as model.matrix, vcov.stepmented
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.