Question: 2. Consider the model y = 3 + 0.5x + 0.2x2 + ????, for 2 < x < 2. (i) Simulate n = 50 observations
2. Consider the model y = 3 + 0.5x + 0.2x2 + ????, for −2 < x < 2.
(i) Simulate n = 50 observations from this model with a definite signal and some definite noise, perhaps 0.7 < R2 < 0.9.
(ii) Fit a model using lm().
(iii) Fit a model using nls().
(iv) Compare the results.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
