Learn R Programming

bfp (version 0.0-48)

getPostExpectedgAndShrinkage: Extract posterior expected g and shrinkage factor (g/(1+g)) from a model

Description

For a valid BayesMfp object, extract posterior expected g and shrinkage factor g/(1+g)

Usage

getPostExpectedg(x, design=getDesignMatrix(x), nObs = nrow(design),
dim = ncol(design))
getPostExpectedShrinkage(x, design=getDesignMatrix(x),
nObs =nrow(design), dim = ncol(design))

Value

The posterior expected g or shrinkage factor g/(1+g) from the model.

Arguments

x

a valid BayesMfp-Object of length 1 (otherwise only first element is recognized)

design

the (centered) design matrix

nObs

number of observations

dim

number of design covariates

Author

Daniel Saban\'es Bov\'e