similar to: FW: problems in resampling time series, block length, trend.test

Displaying 20 results from an estimated 2000 matches similar to: "FW: problems in resampling time series, block length, trend.test"

2009 Jul 15
0
problems in resampling time series, block length, trend.test
Hi, I have a time series (say "x") of 13 years showing an evident increase. I want to exclude two observations (the fourth and 10th), so I do: > trend.test(x[-c(4,10)]) where: > x[-c(4,10)] [1] 7 37 79 72 197 385 636 705 700 1500 1900 and I get: Spearman's rank correlation rho data: x[-c(4, 10)] and time(x[-c(4, 10)]) S = 4, p-value < 2.2e-16
2011 Feb 08
0
tsboot fails on Seasonal Mann-Kendall (seaKen function, wq package)
Dear R-users, tsboot fails when I try to perform a block bootstrap on seaKen (package wq): these commands: require(wq) require(datasets) boot.block.sen <- function(data){seaKen(data)[[1]]} tsboot(sunspot.month, boot.block.sen, R=1999, l=12, sim="fixed") return: Error in seaKen(data) : x must be a 'ts' Any suggestion on how might I change seaKen in order to use it with
2007 Feb 21
0
GLS models - bootstrapping
Dear Lillian, I tried to estimate parameters for time series regression using time series bootstrapping as described on page 434 in Davison & Hinkley (1997) - bootstrap methods and their application. This approach is based on an AR process (ARIMA model) with a regression term (compare also with page 414 in Venable & Ripley (2002) - modern applied statistics with S) I rewrote the code
1999 Dec 09
1
tsboot
Fritz, I have slightly adapted (didn't work before) "tsboot" from the "boot" library to the current time series conventions of R. The following patch will do that. I suggest to apply this patch to the file "boot/R/bootfuns.q" of the "boot" library at CRAN. best Adrian --- bootfuns.orig.q Thu Dec 9 10:07:23 1999 +++ bootfuns.q Thu Dec 9 10:06:51 1999
1999 Dec 09
1
tsboot
Fritz, I have slightly adapted (didn't work before) "tsboot" from the "boot" library to the current time series conventions of R. The following patch will do that. I suggest to apply this patch to the file "boot/R/bootfuns.q" of the "boot" library at CRAN. best Adrian --- bootfuns.orig.q Thu Dec 9 10:07:23 1999 +++ bootfuns.q Thu Dec 9 10:06:51 1999
2007 Nov 22
0
Problem with tsboot
I'm trying to bootstrap some regression coefficients so that I can estimate confidence intervals, but boot is not producing results. Can anybody suggest what I'm doing wrong here? > SpecPress <- ts(rnorm(501)) > Returns <- ts(rnorm(501)) > BootData <- data.frame(cbind(SpecPress, Returns)) > boot.specpress <- function(data, indices, maxit=20){ + data <-
2010 Aug 01
0
BCa-intervals not defined in boot.ci() for tsboot() -> package: boot
Hello everybody, when I create an object of class boot with the function tsboot() from the package boot and try to compute several types of confidence intervals with boot.ci("object of class boot created with tsboot") I obtain the warning message, that "BCa-intervals are not defined for time-series bootstraps". Does that hold in general? Or is it just not defined in
2010 Mar 01
1
p-values from bootstrapping of time series (tsboot)
Does anyone know how p-values can be generated if tsboot (stationary bootstrap) for time series is performed? That would be of great help. Thanks a lot for your comments. Markus [[alternative HTML version deleted]]
2009 Nov 08
2
linear trend line and a quadratic trend line.
Dear list users How is it possible to visualise both a linear trend line and a quadratic trend line on a plot of two variables? Here my almost working exsample. data(Duncan) attach(Duncan) plot(prestige ~ income) abline(lm(prestige ~ income), col=2, lwd=2) Now I would like to add yet another trend line, but this time a quadratic one. So I have two trend lines. One linear trend line
2011 Oct 28
0
problem with glsm.krige: trendd and trend l must have similar specifications error
Hello, I used glsm.mcmc and likfit.glsm to create model. Now I want to predict at different locations, but I can't get glsm.krige to work. I keep getting the error that trend.d and trend.l must have similar specifications. I have tried numerous ways to include the covariates in the glsm.krige model, and I keep getting the same error message. The bolded part is the part that doesn't work.
2006 Oct 02
0
GLS models - bootstrapping
Hello, I am have fitted GLS models to time series data. Now I wish to bootstrap this data to produce confidence intervals for the model. However, because this is time series data, normal bootstrapping is not applicable. Secondly, 'tsboot' appears to only be useful for ar models - and does not seem to be applicable to GLS models. I have written code in R to randomly sample blocks of
2009 Jan 19
0
Trend.spatial function in geoR
I am having difficulty getting the trend.spatial function in geoR to work properly. After creating a trend.spatial object with a covariate, I try to add the command into my likfit() function as follows: trend1.trend.spatial <- trend.spatial("1st", trend1.geodata) trend1.spatial.EC0.1.reml <- likfit(spatial.geodata, trend1.trend.spatial, ini.cov.pars = spatial.EC0.1.eyefit,
2005 Jun 14
1
using forecast() in dse2 with an ARMA model having a trend component
(My apologies if this is a repeated posting. I couldn't find any trace of my previous attempt in the archive.) I'm having trouble with forecast() in the dse2 package. It works fine for me on a model without a trend, but gives me NaN output for the forecast values when using a model with a trend. An example: # Set inputs and outputs for the ARMA model fit and test periods
2006 Aug 18
0
[Fwd: Trend test and test for homogeneity of odd-ratios]
I partly answered my question since independence_test() function in coin package apparently do Cochran-Armitage trend test just like Eric Lecoutre's function tabletrend() - slightly modified here: > independence_test(pheno ~ geno, data = dat2, teststat = "quad", scores = list(geno = c(0, 1, 2))) Asymptotic General Independence Test data: pheno by groups 1 < 2
2007 Jul 13
1
spatstat - Fitting a Strauss model with trend determined by kernel density smoother
Dear r-help, I would like to use the 'ppm' function of the 'spatstat' package to fit a Strauss inhibition model. I understand that I can specify a parametric model for the "background" trend, but how would I specify a trend which is estimated using a Kernel density smoother? In particular, I would like to use the 'kde' function of the 'ks' package to
2009 May 15
1
Dickey-Fuller Tests with no constant and no trend
R has a Dickey-Fuller Test implementation (adf.test) that tests for unit roots in an autoregressive process with a constant and linear trend. Is there a DF implementation that doesn't use the constant or trend? Thanks, Jake. -- View this message in context: http://www.nabble.com/Dickey-Fuller-Tests-with-no-constant-and-no-trend-tp23565210p23565210.html Sent from the R help mailing list
2010 Aug 19
1
How to include trend (drift term) in arima.sim
I have been trying to simulate from a time series with trend but I don't see how to include the trend in the arima.sim() call. The following code illustrates the problem: # Begin demonstration program x <- c(0.168766559, 0.186874000, 0.156710548, 0.151809531, 0.144638812, 0.142106888, 0.140961714, 0.134054659, 0.138722419, 0.134037018, 0.122829846, 0.120188714,
2011 Mar 30
1
VECM with UNRESTRICTED TREND
Dear All, My question is: how can I estimate VECM system with "unrestricted trend" (aka "case 5") option as a deterministic term? As far as I know, ca.jo in urca package allows for "restricted trend" only [vecm <- ca.jo(data, type = "trace"/"eigen", ecdet = "trend", K = n, spec = "transitory"/"longrun")].
2012 Sep 17
2
Problem with Stationary Bootstrap
Dear R experts,   I'm running the following stationary bootstrap programming to find the parameters estimate of a linear model:     X<-runif(10,0,10) Y<-2+3*X a<-data.frame(X,Y) coef<-function(fit){   fit <- lm(Y~X,data=a)    return(coef(fit)) }  result<- tsboot(a,statistic=coef(fit),R = 10,n.sim = NROW(a),sim = "geom",orig.t = TRUE)   Unfortunately, I got this
2012 Feb 20
1
Time Series - Trend Line
How can I had a trend line to my plot? My data looks like this: Date=seq(as.Date("1910/1/1"), as.Date("1920/1/1"), "day") Values=runif(length(Date), min=-5, max=5) dataset=data.frame(Values,as.Date(Date)) I just want to add a linear trend line to this plot(dataset,col=rgb(1,0,0,1/8),cex=0.5,pch=19) -- View this message in context: