MCQs>Finance & Management>R>In a linear regression model with outcome y and linear predictors x1, x2, and x3, which R code correctly includes an interaction term between x1 and x2?
R MCQs
In a linear regression model with outcome y and linear predictors x1, x2, and x3, which R code correctly includes an interaction term between x1 and x2?
Answer
Correct Answer: lm(y ~ x1 + x2 + x3 + x1*x2)
Explanation:
Note: This Question is unanswered, help us to find answer for this one