Closed IljaK91 closed 2 years ago
For the first issue, you should open an issue on StatsModels on why term(:a) * term(:b)
does not work even though term(:a) & term(:b)
does — I am just following the methods defined in that package.
For the second issue, this is to be expected: it's super confusing but fe(:c) * fe(:d)
actually means fe(:c) + fe(:d) + fe(:c) & fe(:d)
.
FWIW there's no reason why you can't implement whatever run-time operators you want even if they're not defined in StatsModels per se!
@kleinschmidt I'm a lazy man ;)
@IljaK91 to conclude: instead of writing fe(:c) * fe(:d)
, write fe(:c) + fe(:d) + fe(:c) & fe(:d)
, which does the same thing.
The following throws an error when using *
error message:
Plus, I thought that the second and third regression should yield the same, but indeed the standard errors are very different. Or did I misunderstand something?