Name

bintodec — During each BMA step, convert "base 2" models codification into bits

CALLING SEQUENCE

vsave = bintodec(binsave,nvar)

PARAMETERS

Input

• binsave = vector of numbered different visited models in binary codes

• nvar = # of exogenous variable

Output

• vsave = matrix of ones (indication that a variable has been selected) and zeros (otherwise)

DESCRIPTION

Function used for bayesian model averaging codes. It converts "base 2" models codification into bits. memory).

AUTHOR

Emmanuel Michaux 2006