Displaying 12 results from an estimated 12 matches for "tskernel".
Did you mean:
iskernel
2024 Jul 10
1
Implementation for selecting lag of a lag window spectral estimator using generalized cross validation (using deviance)
...the same thing in 2
different ways, did not work for me:
kernapply( spectrum(lh*mytaper$v,method="pgram")$spec,parzenwin(10),circular=TRUE)
spectrum(lh*mytaper$v,kernel = parzenwin(10),method="pgram")
# ?spec.pgram says
kernel: alternatively, a kernel smoother of class ?"tskernel"?.
How can I see all available kernels of class tskernel ?
The important question here is how to choose m which implies a bias -
variance tradeoff. Ombao et al, have a generalized cross validation
method to choose m.
Please see point 5 above. Does that exist in R ?
Many thanks,
Ashim
2008 Jul 15
1
methods/namespaces/possible bug
...* plot.isoreg* plot.lm
[19] plot.medpolish* plot.mlm plot.ppr*
[22] plot.prcomp* plot.princomp* plot.profile.nls*
[25] plot.spec plot.spec.coherency plot.spec.phase
[28] plot.stepfun plot.stl* plot.table*
[31] plot.ts plot.tskernel*
Non-visible functions are asterisked
I don't see plot.function listed. As I read the man page for methods I
would say that the search is just looking for functions with the right
type of name.
If I define a plot.function in my global workspace, methods("plot")
picks it u...
2019 Feb 14
0
Proposed speedup of spec.pgram from spectrum.R
...thed) periodogram.
series <- deparse(substitute(x))
x <- na.action(as.ts(x))
xfreq <- frequency(x)
x <- as.matrix(x)
N <- N0 <- nrow(x)
nser <- ncol(x)
if(!is.null(spans)) # allow user to mistake order of args
kernel <- {
if(is.tskernel(spans)) spans else
kernel("modified.daniell", spans %/% 2)
}
if(!is.null(kernel) && !is.tskernel(kernel))
stop("must specify 'spans' or a valid kernel")
if (detrend) {
t <- 1L:N - (N + 1)/2
sumt2 <- N * (N...
2015 Jul 07
3
List S3 methods and defining packages
Hi,
from the man page ?methods, I expected to be able to build pairs
(class,package) for a given S3 method, e.g., print, using
attr(methods(print), 'info').
However all the methods, except the ones defined in base or S4
methods, get the 'from' value "registered S3method for print", instead
of the actual package name (see below for the first rows).
Is this normal
2011 Aug 26
1
methods() not listing some S3 plot methods...?
...lot.princomp*
[34] plot.profile.nls* plot.ranef.lme* plot.ranef.lmList*
[37] plot.shingle* plot.simulate.lme* plot.spec
[40] plot.stepfun plot.stl* plot.table*
[43] plot.trellis* plot.ts plot.tskernel*
[46] plot.TukeyHSD plot.Variogram*
Non-visible functions are asterisked
> pmeth <- methods("plot")
> grep("plot.mgcv.smooth", pmeth)
integer(0)
> getS3method("plot", "mgcv.smooth")
Error in getS3method("plot"...
2004 May 25
3
problems with plot.formula
With the recent changes in R 1.9.x, it is now impossible to properly call
plot on a formula() where the formula is provided via a named first
argument. On today's R-1.9.1-alpha:
> x <- 1:10
> y <- rnorm(x,0.25)
>
> plot(x~y)
>
> plot(x=x~y)
Error in terms.formula(formula, data = data) :
argument is not a valid model
>
> plot(formula=x~y)
Error in
2023 Apr 08
0
Time to add is.formula() to 'stats'?
..."element" "finite" "hashtab" "infinite"
[7] "language" "leaf" "loaded" "mts" "na" "nan"
[13] "object" "primitive" "recursive" "tskernel" "unsorted"
2. For which Y does as.Y() have no corresponding is.Y()?
[1] "Date" "POSIXct" "POSIXlt" "dendrogram"
[5] "difftime" "dist" "formula" "graphicsAnnot&q...
2004 May 06
1
plot(hist.default(1:10,plot=F)) error.
Hi!
How to find out which plot function is used when i call
plot(hist.default(1:10,plot=F)) and all works fine ?
The reason why I would like to know it is that after loading some self written R functions
> plot(hist.default(1:10,plot=F))
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
> traceback()
5: stop("x and y lengths differ")
4: xy.coords(x, y,
2016 Nov 11
0
.S3methods: issue in content of info data.frame
...plot FALSE
plot.stepfun TRUE stats plot FALSE
plot.stl FALSE registered S3method for plot plot FALSE
plot.table FALSE registered S3method for plot plot FALSE
plot.ts TRUE stats plot FALSE
plot.tskernel FALSE registered S3method for plot plot FALSE
plot.TukeyHSD FALSE registered S3method for plot plot FALSE
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_ZA.UTF-8 LC_NUMERIC=C
LC_TIME=en_ZA.UTF...
2015 Jul 07
0
List S3 methods and defining packages
...t;plot.raster" "plot.spec" "plot.stepfun"
stats graphics stats
"plot.stl" "plot.table" "plot.ts"
stats stats
"plot.tskernel" "plot.TukeyHSD"
Also this is for loaded, rather than attached, namespaces.
Martin Morgan
> Thank you.
>
> Bests,
> Renaud
>
> visible
> from generic isS4
> print.abbrev...
2015 Jul 08
0
List S3 methods and defining packages
...t; "plot.stepfun"
>>> stats graphics stats
>>> "plot.stl" "plot.table" "plot.ts"
>>> stats stats
>>> "plot.tskernel" "plot.TukeyHSD"
>>>
>>> Also this is for loaded, rather than attached, namespaces.
>>>
>>> Martin Morgan
>>>
>>>> Thank you.
>>>>
>>>> Bests,
>>>> Renaud
>>>>
>>>&g...
2011 Jul 27
3
?plot: Add an example on how to plot functions to the help of `plot`.
Dear R folks,
currently the section Examples contains the following as an example on
how to plot a ?normal? function.
plot(sin, -pi, 2*pi)
Since it does not contain the argument for the function it would be
helpful to add for example the following.
## plots the graph of f(x) = x**2 with f(x) ? [1, 10]
curve(x**2, 1, 10)
## plots the graph of f(x) =