An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090514/effa5e78/attachment-0001.pl>
corrupted smoothing kernel ?
4 messages · Uwe Ligges, mauede at alice.it, Rolf Turner
mauede at 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 at 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090515/1f057f78/attachment-0001.pl>
On 15/05/2009, at 10:04 AM, mauede at alice.it wrote:
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.
I think you are missing the point. The stats package is (or should
be) loaded automatically
when you start R. There is (should be) no need to do library(stats).
To make sure your installation is working correctly in this regard:
* start R
* _without_ doing ``library(stats)'' type ``search()''
* you should see ``package:stats'' in the search path which is listed
The point that Uwe was making was that you probably had some *other*
package loaded,
said package containing a density() function (with only one
argument?) which masked
the density() function in the stats package.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}