Disentangle the interaction parser from the variable parser.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Nov 2022 17:02:00 +0000 (09:02 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Nov 2022 17:03:22 +0000 (09:03 -0800)
commitf4aa41e356cfddfac22add29193d6e2e43259c93
treed037be924997b3359bc145ce47e25c150fbe4642
parent9666b94fcb0fe0230371d85a951ed18d1a34d538
Disentangle the interaction parser from the variable parser.

Both GLM and LOGISTIC REGRESSION used the interaction parser, but only GLM
used it to parse interactions in the full sense.  LOGISTIC REGRESSION was
just parsing a list of variables and then creating interactions from them.
This commit moves the interaction parser from variable-parser into GLM and
adds new code to LOGISTIC REGRESSION that satisfies its needs.
src/language/lexer/variable-parser.c
src/language/lexer/variable-parser.h
src/language/stats/glm.c
src/language/stats/logistic.c