سؤال

I would like to use lm to predict y by a/b (the quotient of a by b) when I do lm(y~a/b) I get a and b interactions, how can I do ?

هل كانت مفيدة؟

المحلول

lm(y~I(a/b))

This is covered in ?formula.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top