Question: 4. Using nlmO, and the mse 0 function you wrote, write a function, plmO , which estimates the parameters yo and a of the model

4. Using nlmO, and the mse 0 function you wrote, write a function, plmO , which estimates the parameters yo and a of the model by minimizing the mean squared error. It should take the following arguments: an initial guess for yo; an initial guess for a; a vector containing the N values; a vector containing the Y values. All arguments except the initial guesses should have suitable default values. It should return a list with the following components: the nal guess for ya; the nal guess for a; the nal value of the MSE. Your function must call those you wrote in earlier questions (it should not repeat their code), and the appropriate arguments to plmO should be passed on to them. What parameter estimate do you get when starting from yo = 6611 and a = 0.15? From yo = 5000 and a, = 0.10? If these are not the same, why do they differ? Which estimate has the lower MSE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
