Contains the design matrices produced for model fitting. The fixed effects design matrix X or random effects design matrix Z can be specified.
getDesign(object,...)## S4 method for signature 'bayesGAMfit'getDesign(object, type ="X")## S4 method for signature 'glmModel'getDesign(object, type ="X")
Arguments
object: Object of type bayesGAMfit generated from bayesGAM
...: Additional arguments for getDesign
type: Character for fixed effect design matrix X or random effects design matrix Z
Returns
Contents of stanfit results
Examples
require(stats); require(graphics)f <- bayesGAM(weight ~ np(height), data = women, family = gaussian, iter =500, chains =1)getDesign(f,"Z")