| as.matrix.pooled.setx {Zelig} | R Documentation |
The setx object is, in its most basic form, a list of column names and values specified for each of these column names. This function simply converts the key-value pairs of column-name and specified value into a matrix.
## S3 method for class 'pooled.setx' as.matrix(x, ...)
x |
a setx object |
... |
ignored parameters |
a matrix containing columns and rows corrseponding to the explanatory variables specified in the call to the 'setx' function
This method allows basic matrix arithmetic operations on data objects, which mirror values stored within setx objects. In many scenarios, simulations require matrix-multiplication, etc. to be performed on a data-set. This function faciliates that need.
Matt Owen mowen@iq.harvard.edu