* Add missing data handling to the just-pass-in-a-matrix bit of the high-level API
* Add parallel array handling to build_design_matrices
* Add parallel array handling of some sort to high-level API...
* Refactor build so that there are two stages
- first stage takes a set of factor evaluators, and returns a set of
evaluated columns
- second stage handles interactions and categorical coding and assembles
these together into design matrices
use case: any model where you actually want to get categorical data
out (like multinomial regression with a factor on the LHS, or CART
with factors on the right-hand side)
** first stage should also handle other "parallel" data, like weights, which need to participate in the missingness calculations
** possibly also support a "subset=" argument at this stage
** and for parallel vectors and subset=, allow a string as a value, and if seen then evaluate it as python code in the same context as formula data (like R's subset=(MyCol > 10))
** And do NaN/mask/missing data handling at this stage
*** Imputation?
*** numpy.ma
* Better NaN/masks/missing data handling in transforms. I think the
current ones will just blow up if there are any NaNs. (The previous
entry is about handling the term "x" where x has NAs; this entry is
about handling "center(x)" where x has NAs.) R's solution to this is
that scale(x) simply unconditionally ignores NAs when computing the
mean, regardless of the overall setting of na.action. That seems
reasonable...
* Advocacy
Potential users?
- statsmodels
- PyMC has a (closed) ticket requesting such features: