[R] spatial analysis

2011-12-05 Thread Marianne.ZEYRINGER
Dear all, I am a PhD student in energy modelling. I am completely stuck with the following problem and would be very grateful for any kind of help. I have cells and each cell is assigned a number. I would like to form clusters of cells where the sum of the cell numbers in each cluster must not ex

Re: [R] fitting a sinus curve

2011-08-01 Thread Marianne.ZEYRINGER
Dear all, Thanks again for your help. I looked at a polynomial regression of 12th order and the sinus regression and to me the polynomial model seems to fit better. What do you think? Thanks a lot, Mariannne time <- c(0.15,0.30,0.45,1.00,1.15,1.30,1.45,2.00,2.15,2.30,2.45,3.00,3.15,3.30,3.45

Re: [R] fitting a sinus curve

2011-08-01 Thread Marianne.ZEYRINGER
Dear David and Hans- Werner, Thank you very much for your help. I would like to compare now if a polynomial or the sinus model fits better. How can I see R-squared or the F- Statistic for the sinus regression, so as to be able to compare it with the polynomial model? Thanks a lot and have a nice ev