Learn R Programming

BAS (version 1.2.1)

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.bas to determine if the median probability model is included in the sample. Not meant to be used directly by the user. p must be less than or equal to 32.