How to use division in lm

I would like to use lmto predict yon a/b(factor a through b) when I do lm(y~a/b)I get interactions aand bhow can I do this?

+3
source share
1 answer

lm(y~I(a/b))

This is described in ?formula.

+5
source

All Articles