## Activity: Finding Best Fitted Model (contd)

- Narrowing down on best fitted models w.r.t intercept and slope (a1,a2)

- Now lets create all the possible values using expand grid and find the top 10 on the basis of distance

- Now lets plot the line and all the data from sim1 to find how top 10 models are behaving

- Finding the best model using optim

- Now lets use base r to find the model

- Now lets find the predictions using base R

- Lets view the analysis

- Measure Accuracy

- Refer Here for the changes made