chrisadolph/tile-simcf — Issue #4: simcf Modularity, step 1:  Model matrix helper
Author: chrisadolph
Created: 2012-01-29 20:11:49+00:00
State: open

simcf should be more modular, to make revision and extension much easier.

The first step in modularizing simcf is creating a general helper function which creates design matrices for simulation functions from any kind of user input (ie, matrix, dataframe, formula, or cf object). Note that this helper will be called by simcf simulation functions```linearsimev```, ```linearsimfd```, ```logitsimev```, etc., and will usually be called within those functions anytime a model matrix for counterfactual scenarios needs to be made (so for first differences or differences in differences, this helper will be called multiple times).

Currently, redundant code exists in each simcf simulation function. That code needs to be pulled out, generalized, improved, and wrapped up in a helper function.