Learn R Programming

BAS (version 0.80)

bin2int: Convert binary model representation into an integer

Description

Takes a binary string representation of a model and converts to an integer

Usage

bin2int(model)

Arguments

model
a Boolean/binary vector of length p representing a model

Value

  • an integer

Details

Used in fitted.bma to determine if the median probability model is included in the sample. Not meant to be used directly by the user. On a 32 bit system, p must be less than or equal to 32.