Learn R Programming

Zelig (version 4.2-1)

as.matrix.setx: 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