How To Find Least Square Estimates In R