So matlab help has the following description :
[P, S, MU] = POLYFIT[X,Y,N]
I know what the input variables mean, but i cant calculate the MU “manually”. The MU i need for calculating the area of a peak.
I need to convert source code from MATLAB to R, but don’t know what’s the best to do.
MU is given as [mu1,mu2] and is used for centering and scaling the data so that the problem will have good numerical properties. mu1 is the mean of x and mu2 is the standard deviation of x.
See info here.