What would the R commands be to complete the following problem:
1. Generate a sequence of x variable from 0 to 10 by 0.5 increment. 2. Generate yi = 2 + 3 ∗ xi + ei where ei ∼ i.i.d.N(0, 3^2 ). 3. Plot x and y. 4. Fit a linear regression model for y on x using command lm 5. Draw the fitted regression line.
What would the R commands be to complete the following problem: 1. Generate a sequence of...