Hi,
I would like to ask about one problem I need to solve. I had found codes for fitting logarithmic spiral and circle with measured data (R. Wicklin). Later I tried to compare these models with my own measured data (short arcs). In some cases, the plots of spiral and a circle (or ellipse) fitted very similar. By reading the programmes for spiral and a circle I realized that the codes optimize data in a different way. I would like to know if there is a way I could choose the best fitting model (according to the value of the objective function, radius or something else).
Thanks
Ludek
The simplest measure would be a statistic that uses the residuals. Either sum-of-squared errors (SSQ) or mean squared error (MSE) could be used. The difficulty, I think, is that the residuals ought to be computed in the direction orthogonal to the curve. For fitting a circle, this means that the residuals are in the radial direction. For ellipses and spirals, the definitions for the residuals are in the comments.
A more complex statistic would be an adjusted R-squared statistics, which includes a "penalty term" for fitting more complex models. A circle has two parameters, an ellipse has four parameters, and the spiral has four.
Calling @Rick_SAS
The simplest measure would be a statistic that uses the residuals. Either sum-of-squared errors (SSQ) or mean squared error (MSE) could be used. The difficulty, I think, is that the residuals ought to be computed in the direction orthogonal to the curve. For fitting a circle, this means that the residuals are in the radial direction. For ellipses and spirals, the definitions for the residuals are in the comments.
A more complex statistic would be an adjusted R-squared statistics, which includes a "penalty term" for fitting more complex models. A circle has two parameters, an ellipse has four parameters, and the spiral has four.
Thanks for your really helpful advice.
Ludek
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.