getDesignMatrix: Construct the design matrix for a given bfp GLM model

Description Usage Arguments Value

Description

This is an internal function to construct the (centered) design matrix for a given bfp GLM model.

Usage

1
2
3
4
5
6
getDesignMatrix(
  modelConfig = object[[1]]$configuration,
  object,
  intercept = TRUE,
  center = TRUE
)

Arguments

modelConfig

the model configuration list which must have elements “powers” and “powers”. Defaults to the configuration of the first element of

object

the GlmBayesMfp object, which is needed because it contains the covariates matrix and indices vector

intercept

return the intercept column inside the matrix (default) or not?

center

should the data be centered (default) or not?

Value

The design matrix, where the non-fixed part is columnwise centered (that is, the colmeans are zero).


glmBfp documentation built on July 2, 2020, 2:30 a.m.