This is an internal function to be called by `ls.estimate`

to generate design matrix.
Users should call `ls.estimate`

whenever is possible.

1 | ```
design.matrix(f1,f2)
``` |

`f1` |
a vector of length equal to the number of arrays. Each entry indicates the level of the first factor for corresponding array. The values of f1 should be 1,2,3,... |

`f2` |
a vector of length equal to the number of arrays. Each entry indicates the level of the second factor for the corresponding array. The values of f2 should be 1,2,3,... If the experimental has only one factor, let f2=0. |

The output is a list object.

`X0` |
??? |

`Xa` |
??? |

`Xb` |
??? |

Baiyu Zhou zhouby98@stanford.edu & Weihong xu weihongx@stanford.edu

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.