search for: xshort

Displaying 2 results from an estimated 2 matches for "xshort".

Did you mean: short
2011 Nov 11
1
Formula variable help
I have an R script with the following applicable lines: xshort <- window(s, start=st, end=ed) . . . xshort <- ts(xshort, frequency=1, start=1) . . . m1 <- m2 <- m3 <- m4 <- m5 <- m6 <- NULL m1 <- tslm(xshort ~ trend) I get an error: Error in get(dataname) : object 'xshort' not found When I do traceback() I get: 3: g...
2011 Nov 08
3
window?
...cy=53, start=c(2000,10))) n <- length(s) k <- n%/%3 for(i in (n-k):n) { st <- c(start(s)[1] + (start(s)[2] + i)%/%frequency(s), (start(s)[2] + i) %% frequency(s)) ed <- c(start(s)[1] + (start(s)[2]+k+i)%/%frequency(s), (start(s)[2]+i+k) %% frequency(s)) xshort <- window(s, start=st, end=ed) cat("Start ", st, " End ", ed, "\n") cat("Length ", length(xshort), " start ", start(xshort), " end ", end(xshort), "\n") } I get a bunch of warnings like:...