get.g.sweep: Internal function used to generate the regression...

Description Usage Arguments Value Author(s) See Also

View source: R/get.g.sweep.R

Description

Internal function used for the generation of the regression coefficients beta. get.g.sweep extracts the values of the shrinkage factor g associated with the sweeps at which a given model has been visited. The model under investigation is defined by its rank in terms of posterior probability.

Usage

1
  get.g.sweep(x, res, model)

Arguments

x

an object of class ESS.

res

a matrix of boolean values indicating at which sweeps of the MCMC run the model has been visited. This matrix is the output of get.sweep.best.model.

model

integer specifying the rank (according to the model posterior probability) of the model under investigation.

Value

An object of class g.prior containing:

g.value

the observed values of g for the chosen model.

predictors

the variables belonging to the model considered.

X

the X design matrix for the model.

Y

the centred outcome matrix.

Author(s)

Benoit Liquet, b.liquet@uq.edu.au,
Marc Chadeau-Hyam m.chadeau@imperial.ac.uk,
Leonardo Bottolo l.bottolo@imperial.ac.uk,
Gianluca Campanella g.campanella11@imperial.ac.uk

See Also

get.sweep.best.model


R2GUESS documentation built on May 2, 2019, 1:47 p.m.