merliseclyde / BAS

BAS R package https://merliseclyde.github.io/BAS/
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

include hereditary constraints #19

Closed merliseclyde closed 6 years ago

merliseclyde commented 6 years ago

Add option for factors and interactions so that

1) all levels of a factor enter or leave the model together 2) all lower order terms are included whenever a higher order term is added to the model for i.e. for a model formula with factor A having J levels and continuous variable B: Y ~ A*B there are 4 models Int, Int + A, Int + B, Int + A + B + A:B Should work with higher order interactions in factorial models.

merliseclyde commented 6 years ago

Works with bas.lm and bas.glm with methods BAS and MCMC; currently does not work with method deterministic or method BAS+MCMC. Not compatible with include.always yet.