There are two time series, that are generated in an experiment, where the intensity of signals of chemical bounds are measured along a wavelength interval, but the second series are generated by measuring the intensity of radiated sample of chemical bound in the same interval. Two experiments are conducted and the results graphed. Plots indicate that in some intervals there are differences in signal intensity between the radiated and non radiated samples ( that would indicate changes of the chemical bound due to radiation). One experiment shows that these differences are greater whilst the other shows almost neglible differences. How could I compare these series in order to test the significance of the differences along the wavelength interval. And if these differences are significant then even maybe construct some sort of function that could express these differences theoretically?
I tried to do the t test in R comparing the signal intensity on each wavelength between the time series that correspond to non-radiated chemical bound signal intensity and the other time series that fixes the signal intensity for radiated sample chemical bound along the wavelength interval. ( Here I take wavelengths as an independent variable (time) and the signal intensity is the dependent variable. When I executed the t test in R for radiated and non radiated intensities it showed that there is a significant difference in means so that could conclude that the time series do differ. I am not sure how strong the t test would be though in this instance. Furthermore I would like to somehow measure the difference. I also tried the cor(x,y) function in R and it showed very high correlation 0.99 so I think that's not at all reliable too, maybe it shows high correlation only because they are both dependent on time (wavelength) and the time variable distorts the correlation. Anyway any ideas would be helpful!
So, in a nutshell, I want to know whether some factor ( in this case radiation) have a significant impact on output ( that is the values of these series). When looking at graphs it looks that these differences appear on certain wavelength intervals ( that would indicate that the chemical bound has been changed by radiation). Maybe one can even compute some sort of function that expresses the changes? Any help would be greatly appreciated!
When applying the gam function in R I get a warning message:
Warning message: In model.matrix.default(mt, mf, contrasts) :
non-list contrasts argument ignored
In the first experiment the difference in residual deviance between the radiated - non-radiated sample is around 9.18. In the second experiment the difference is around 17.87. When I don't wrap up the predicator $t$ with $s$ I get larger residual deviance.