bin2int {BAS}R Documentation

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

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.

Value

an integer

Author(s)

Merlise Clyde clyde@stat.duke.edu


[Package BAS version 0.1 Index]