Suppose we want to write an R package to do regression (and don't know how). Here are some things we need to know.
My qualifications for writing this are that I have two regression-like packages on CRAN and I have also taught statistical computing. But that doesn't make me a wizard. I don't know all the incantations, only some of them.
Here are the things this page talks about.
- How to turn an R formula into a model matrix (the right way).