1

I uses supsmu to fit a smooth curve to a scatter plot of data here.

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?

0 Answers0