[R] forecast & xreg

2008-07-08 Thread Vorlow Constantinos
Dear all, I am fitting an arimax (arima with some extra explanatory variables) model to a time series. Say, I have a Y (dependent variable) and an X (explanatory). Y is 100 observations (time series) and X is 100 + 20 (20 to use for the forecast horizon). I can not make xreg work with t

[R] Combining playwith with par(mfrow... ) i.e., multiple plots.

2008-07-02 Thread Vorlow Constantinos
Hi, I have the following problem: library(playwith) x<-ts(rnorm(100)) y<-ts(cumsum(x)) playwith({ par(mfrow=c(2,1)) plot(x) plot(y)}) I can't make playwith identify (using the button top left) datapoints on multiple graph plots (eg. par(mfrow=c(2,2) for a 2 x

[R] How can I shade the background area of a zoo time series object between specific dates?

2008-06-19 Thread Vorlow Constantinos
Dear list members, How can I shade the background area of a zoo time series object between specific dates? eg. library(tseries) library(zoo) SP500<-get.hist.quote("^GSPC", start = "1990-01-01", quote = "Close") plot(SP500) How can I produce the same plot but with a (say) red

[R] ctv, install.views, install.packages (& update.packages)

2008-04-14 Thread Vorlow Constantinos
Dear all, Wouldn't it be helpful if the install.views install.packages update.packages had a "downloadonly=TRUE" flag which would allow us to download the packages and install them later (or put them in a USB stick and take them for installation on anothe PC). I am behind a firewall (Bank)