Skip to content

Instantly share code, notes, and snippets.

View cjgeyer's full-sized avatar

Charles J. Geyer cjgeyer

View GitHub Profile
@cjgeyer
cjgeyer / regression.md
Last active February 11, 2021 01:10
R Packages that Do Regression of Some Sort

Introduction

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.

  1. How to turn an R formula into a model matrix (the right way).