R/model2index.R

Defines functions model2index

Documented in model2index

model2index <-
function (model,dig) { 			## need to tell it number of columns in maximal design matrix
res<-t(sapply(X=model,FUN=hex2bin))			## uses hex2bin function from BMS

s<-dim(res)[2]
res[,(s-dig+1):s]}

Try the conting package in your browser

Any scripts or data that you put into this service are public.

conting documentation built on Jan. 20, 2018, 9:07 a.m.