Which of the following statements will generate a multiple linear regression model within R where the output or predicted variables is Sales and the prediction variables include temperature and unemploymentrate?
Select one:
- a. lm(sales~temperature+unemploymentrate)
- b. lm(temperature+unemploymentrate=sales)
- c. lm(sales+temperature~unemploymentrate)
- d. None of these commands are valid
The correct answer is: lm(sales~temperature+unemploymentrate)