I have just installed R2.9.0 on my Windows XP system. I have followed the same installation procedure I have been using for over a year. That is installation from the "exe" file. "kernel" belongs to package "stats"which is (I think) installed by default. I loaded it but did not use the command: > library(stats) Now I did and it works fine for me too. I am sorry. I though such a command is only necessary when a package is installed. Thank youi. Maura
-----Messaggio originale----- Da: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Inviato: gio 14/05/2009 16.14 A: mau...@alice.it Cc: r-h...@stat.math.ethz.ch Oggetto: Re: [R] corrupted smoothing kernel ? mau...@alice.it wrote: > I am trying to use the "kernel" function. To understand how it works I tried > out some of the examples. > None of them works as shown in the following: > >> kernel("daniell", 50) # > Error in kernel("daniell", 50) : unused argument(s) (50) .... which works for me. Have you loaded some specific package? Which R versioj is this? Your OS? Self-compiled R or some pre-compiled binary? Uwe Ligges >> kernel("daniell", 10) # > Error in kernel("daniell", 10) : unused argument(s) (10) >> kernel("daniell", c(3,3)) > Error in kernel("daniell", c(3, 3)) : unused argument(s) (c(3, 3)) >> kernel("fejer", 100, r=6) > Error in kernel("fejer", 100, r = 6) : unused argument(s) (100, r = 6) >> kernel("daniell", c(11,7,3) ) > Error in kernel("daniell", c(11, 7, 3)) : > unused argument(s) (c(11, 7, 3)) > > My goal is to detrend a time series affected by non-linear trend. I do not > have clear ideas about the > difference betweeen "detrending" and "smoothing". I would appreciate some > suggestions and/or literature references > by people experienced about detrending and smoothing. > I was told the there are two best methods about detrending: polynomial fit on > a sliding window and kernel smoothing. > I keep being confused . I got the book by Hardle. Maybe you can advice some > other clarifying literature (possibly with > examples). > Thank you very much. > Maura > > > > > > > tutti i telefonini TIM! > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. tutti i telefonini TIM! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.