constructNewdataMatrix: Construct the covariates matrix for new data based on an...

Description Usage Arguments Value

View source: R/constructNewdataMatrix.R


This is an internal function, which constructs a model matrix for new covariate data, based on the formula and scaling info in an existing GlmBayesMfp object. The matrix can then be passed to prediction functions.


constructNewdataMatrix(object, newdata)



a valid GlmBayesMfp-Object


the new covariate data as a data.frame (with the same covariate names as in the call to glmBayesMfp)


The (uncentered!) model matrix with the FP columns shifted and scaled as for the original data.

glmBfp documentation built on May 21, 2017, 12:42 a.m.
Search within the glmBfp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.