I uses supsmu to fit a smooth curve to a scatter plot of data .
I am quite new to curve fitting, but my graph looks somewhat sinusoidal. What would you recommend in terms of next steps to determine a predictive model for this patterns. I have tried this simple code:
xc<-cos(2*pi*trend$x/104)
xs<-sin(2*pi*trend$x/104)
fit.lm <- lm(trend$y~xc+xs)
Any other opinions on methods?