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

R Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

R Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it