Learn R Programming

R2GUESS (version 2.0)

get.sweep.best.model: Internal function used to generate the regression coefficients. This function extracts the sweep(s) for which each selected models has been visited along the MCMC run.

Description

Internal function used to generate the regression coefficients. This function extracts the sweep(s) at which each of the top models has been visited along the MCMC run. The rank of the model(s) to look up for is a parameter of the function.

Usage

get.sweep.best.model(x, models = 1)

Arguments

x

an object of class ESS.

models

a vector containing the rank of the models to look up for.

Value

A list containing a Boolean matrix (N.model rows and x\$nsweep columns), where the element i,j indicates if the i-th model (ranked according to its decreasing posterior probability) has been visited at sweep j.