Construct the covariates matrix for new data based on an existing GlmBayesMfp object

Share:

Description

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.

Usage

1
constructNewdataMatrix(object, newdata)

Arguments

object

a valid GlmBayesMfp-Object

newdata

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

Value

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.