Re: [R] fitting a sinus curve

2011-09-20 Thread maaariiianne
Dear all, Thanks a lot for the help. It worked very well in the end. Best regards, Marianne -- View this message in context: http://r.789695.n4.nabble.com/fitting-a-sinus-curve-tp3700833p3827044.html Sent from the R help mailing list archive at Nabble.com. ___

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
evening. Best, Mairanne -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Hans W Borchers Sent: Friday, July 29, 2011 12:21 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] fitting a sinus curve David Winsemius comcast.net> wri

Re: [R] fitting a sinus curve

2011-07-31 Thread Duncan Mackay
I am slowly transferring things to a new computer when I found this Snews post from Bill Venables - it comes in handy from time to time. http://www.biostat.wustl.edu/archives/html/s-news/1999-09/msg00059.html sin.cos.fcn <- function(k, time) { X <- matrix(0, length(time), 2*k)

Re: [R] fitting a sinus curve

2011-07-29 Thread Hans W Borchers
David Winsemius comcast.net> writes: > > > On Jul 28, 2011, at 1:07 PM, Hans W Borchers wrote: > > > maaariiianne ec.europa.eu> writes: > > > >> Dear R community! > >> I am new to R and would be very grateful for any kind of help. I am > >> a PhD > >> student and need to fit a model to an e

Re: [R] fitting a sinus curve

2011-07-28 Thread David Winsemius
On Jul 28, 2011, at 1:07 PM, Hans W Borchers wrote: maaariiianne ec.europa.eu> writes: Dear R community! I am new to R and would be very grateful for any kind of help. I am a PhD student and need to fit a model to an electricity load profile of a household (curve with two peaks). I was th

Re: [R] fitting a sinus curve

2011-07-28 Thread Hans W Borchers
maaariiianne ec.europa.eu> writes: > Dear R community! > I am new to R and would be very grateful for any kind of help. I am a PhD > student and need to fit a model to an electricity load profile of a > household (curve with two peaks). I was thinking of looking if a polynomial > of 4th order,

[R] fitting a sinus curve

2011-07-28 Thread maaariiianne
Dear R community! I am new to R and would be very grateful for any kind of help. I am a PhD student and need to fit a model to an electricity load profile of a household (curve with two peaks). I was thinking of looking if a polynomial of 4th order, a sinus/cosinus combination or a combination of