as.matrix.setx {Zelig}R Documentation

Convert a 'setx' Object to a Matrix

Description

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.

Usage

  ## S3 method for class 'setx'
as.matrix(x, ...)

Arguments

x

a setx object

...

ignored parameters

Value

a matrix containing columns and rows corrseponding to the explanatory variables specified in the call to the 'setx' function

Note

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.

Author(s)

Matt Owen mowen@iq.harvard.edu


[Package Zelig version 4.2-1 Index]