[R] Data matrix of all possible response patterns

SARAH A DEPAOLI depaoli at wisc.edu
Thu Jun 26 20:18:29 CEST 2008


I am looking for a way to generate a data matrix that contains all possible response patterns for 10 binary items. This should produce a matrix with 10 rows (representing 10 items) and 1024 columns (representing 2^10 possible response patterns). Does anyone know of code that would produce such a matrix? 

Thanks!
Sarah Depaoli



More information about the R-help mailing list