as.matrix.setx: Convert a 'setx' Object to a Matrix

Description Usage Arguments Value Note Author(s)

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

1
2
  ## 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


IQSS/Zelig4 documentation built on May 9, 2019, 9:13 a.m.