I'm currently facing a problem which I thought simpler in the beginning. Basically I have outputs of wind direction from a model and observed wind direction from my sensors (both in degrees). What I would like to do is the equivalent of linear regression and correlation coefficient computation that is used when comparing linear data.
I have both MATLAB and R available and here's something that I've attempted:
I am aware of the existence of the Circular Statistics Toolbox for MATLAB, but, while there are functions for correlations there's nothing for regression.
I've tried to use the package
circularfor R, but, for both regression and correlation data needs to be "circular objects" and I do not know how to correctly set the functionas.circularfor wind direction data: I understand that the unit flag must be set to degree and the rotation to "clock"...but I'm not entirely sure about the zero and modulo flag since the function reasons in radians. Would converting the degrees to radians work? While their modulo will became $2\pi$ what about the zero flag?