Create matrix from select terms
Usage
create_pmatrix_from_terms(xx, terms)
Arguments
- xx
raw matrix with colnames with natural indexes
- terms
selected terms. If exist interact terms like i*j
, then
the i-th column would multiply j-th column, and result in a new column.