Minimum Squared Estimator

Hi,

Welcome to the RStudio community!

In order for us to be able to help you, you need to provide some more information and create a reprex where you give us the code you've written together with some dummy data to run it:

Judging by the question, it seems that this might be part of a homework or course assignment. If this is the case, please state this clearly in the question (you can update your post anytime) and beware this forum has policies regarding this.

Good luck!.PJ