getPosteriorTerm: Get the posterior distribution of the linear predictor of a...

View source: R/predict.R

getPosteriorTermR Documentation

Get the posterior distribution of the linear predictor of a model term

Description

Get the posterior distribution of the linear predictor of a model term

Usage

getPosteriorTerm(label = NULL, model, betaInd = NULL)

Arguments

label

(character) one of the terms in model

model

a spikeSlabGAM object

betaInd

(optional) the column indices of the part of the design matrix for which the linear predictor is to be evaluated.

Value

a matrix containing the samples of the linear predictor associated with label; with attribute 'coef' that contains the posterior samples of the associated coefficients.

Author(s)

Fabian Scheipl


spikeSlabGAM documentation built on June 10, 2022, 5:10 p.m.