I need to calculate the value of two variables b0 and b1 of the following equation using fminsearch in R, yi and xi are the i value of two vectors. The question
fminsearch