Displaying 20 results from an estimated 10000 matches similar to: "plot multiple time series"
2006 May 02
2
Time series plot
I have some time series data like
01/02/1990 0.531 0.479
01/03/1990 0.510 0.522
01/06/1990 0.602 0.604
there is no weekends and holidays.
how do I graph them in a single plot that the x-axis is the dates and
the y-axis is the time series?
Thank you
Regards,
Jincai Jiang
(Office) 212-761-3984
--------------------------------------------------------
This is not an offer (or solicitation
2011 May 15
3
Adding dates to time series
Hi there,
I have a spreadsheet in excel which consists of first column of dates and
then subsequent columns that refer to prices of different securities on
those dates. (the first row contains each series name)
I saved the excel file as type csv and then imported to excel using
prices=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Option
prices.csv",header = TRUE, sep
2009 Feb 24
2
Tracing gradient during optimization
Hi everyone,
I am currently using the function optim() to maximize/minimize functions and
I would like to see more output of the optimization procedure, in particular
the numerical gradient of the parameter vector during each iteration.
The documentation of optim() describes that the trace parameter should allow
one to trace the progress of the optimization.
I use the following command:
2006 Jun 23
2
Time series labeling with Zoo
Hi,
I'm using zoo because it can automatically label the months of a time
series composed of daily observations.
This works well for certain time series lengths, but not for others, e.g.:
While:
> library(zoo)
> plot(zoo(runif(10), as.Date("2005-06-01") + 0:50))
Shows up the months and day of month,
> plot(zoo(runif(10), as.Date("2005-06-01") + 0:380))
2007 Oct 22
1
Newbie help: Data in an arma fit
I'd like to fit an ARMA(1,1) model to some data (Federal Reserve Bank
interest rates) that looks like:
...
30JUN2006, 5.05
03JUL2006, 5.25
04JUL2006, N <---- here!
05JUL2006, 5.25
...
One problem is that holidays have that "N" for their data. As a test, I
tried fitting ARMA(1,1) with and without the holidays deleted. In other
words, I fit the above data
2009 Feb 17
2
Efficient matrix computations
Hi,
I am looking for two ways to speed up my computations:
1. Is there a function that efficiently computes the 'sandwich product' of
three matrices, say, ZPZ'
2. Is there a function that efficiently computes the determinant of a
positive definite symmetric matrix?
Thanks,
S.A.
[[alternative HTML version deleted]]
2010 Feb 22
2
Creating regularly spaced time series from irregular one
Hello,
I have a series of intraday (high-frequency) price data in the form of POSIX
timestamp followed by the value.
I sucesfuly loaded that into "its" package object. I would like to create
from it a regularly spaced time series of prices (for example 1min, 5min,
etc apart) so i could calcualte returns.
There is an interpolation function locf() that for timestamp with value NA
uses last
2007 Mar 28
1
regarding time series object
Hello All
I have time series data like given hereinbelow :-
The data is having dates. I tried using ts() but it requires frequency. As
i have holidays, saturdays sunday market closed, and also sometimes the
data may not be recorded. I want to create a time series object but i want
that where ever the holiday is the except saturday/sunday then it should
impute the mean of previous and the next
2018 Feb 14
2
How to turn off warnings about class name conflicts
Hi,
I am using two packages (quantmod and FRAPO)
Quantmod and FRAPO both have a class names "zoo"
R is displaying the following warning when I manipulate an object of class
zoo:
Found more than one class "zoo" in cache; using the first, from namespace
'quantmod'
Also defined by ?FRAPO?
The warning is displayed every time I manipulate a zoo object and becomes
pretty
2017 Jul 30
4
Kalman filter for a time series
I found an example at
http://www.bearcave.com/finance/random_r_hacks/kalman_smooth.html shown
below. But it seems the structSSM function has been removed from KFAS
library so it won't run. Does anyone know how to fix the code so that it
runs?
library(KFAS)
library(tseries)
library(timeSeries)
library(zoo)
library(quantmod)
getDailyPrices = function( tickerSym, startDate, endDate )
{
2016 Apr 06
2
Is this a bug in quantmod::OpCl?
OpCl works on xts objects but not on quantmod.OHLC objects. Is this a bug?
Example error:
x.Date <- as.Date("2003-02-01") + c(1, 3, 7, 9, 14) - 1
set.seed(1)
x <- zoo(matrix(runif(20, 0, 1), nrow=5, ncol=4), x.Date)
q <- as.quantmod.OHLC(x,c("Open","High","Low","Close"))
# error
OpCl(q)
#> Error in `colnames<-`(`*tmp*`, value =
2018 Feb 14
0
How to turn off warnings about class name conflicts
On 2/13/2018 11:47 PM, Ayhan yuksel wrote:
> Hi,
>
> I am using two packages (quantmod and FRAPO)
>
> Quantmod and FRAPO both have a class names "zoo"
>
> R is displaying the following warning when I manipulate an object of class
> zoo:
>
> Found more than one class "zoo" in cache; using the first, from namespace
> 'quantmod'
>
2012 Nov 27
2
Books for fully understanding internal logics on some packages(quantmod, xts, zoo and chron)
Hello,
I'm very interested in using financial time series data, but I'm a beginner of R programming.
I'd like to fully understand internal logics on several time-series related packages such as quantmod, xts, zoo, chron, etc.
So, I read some books, 'R Cookbook' and 'Art of R Programming' and another simple tutorials.
But I still can't understand grammars of the
2007 Aug 29
5
Month end calculations
Hi R users,
Is there a function in R, which does some calculation only for the month
end in a daily data?... In other words, is there a command in R,
equivalent to "last." function in SAS?
BR, Shubha
[[alternative HTML version deleted]]
2012 Jul 27
1
Working with quantmod chartSeries and plot.zoo
Hi all,
I'm a newbie to R and it has been very helpful to use your website.
Unfortunately I've been struggling with my code now for two days so I wanted
to ask few questions. I've been trying to create nice graphs to put into a
pdf sheet but I'm having little problems with all the packages I've been
using. So what I want to accomplish is create one pdf sheet with three
graphs
2011 Nov 10
2
Error in axis ????
I did an update of both rstudio and my packages. I had some trouble but was
able to move a lot of the packages so most troubles seem to be behind me.
But having a problem with code that previously ran fine. See below:
require(quantmod)
Loading required package: quantmod
Loading required package: Defaults
Loading required package: xts
Loading required package: zoo
Attaching package: ?zoo?
The
2010 Oct 28
4
Returning highs and lows in R
I'm having trouble returning a rolling n period highest value for a data
set. For each day I want to calculate the highest value over the last 3
days. I am using the following packages: zoo, xts, quantmod and TTR.
Thanks, Jason
GLD.Close
2010-10-01 128.91
2010-10-04 128.46
2010-10-05 130.99
2010-10-06 131.81
2010-10-07 130.37
2010-10-08 131.66
2010-10-11
2008 Mar 22
2
intraday OHLC plot
I want to create a open/high/low/last plot of intraday data.
I try to use the function plotOHLC from the tsteries package. I create
my own multiple time series and then try to plot it.
raw Data Format (file eurusd2.csv):
"Date (GMT)" "Open" "High" "Low" "Last"
17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750
17-03-2008 00:05:00 1,5749 1,5750 1,5741
2008 Sep 02
1
R Newbie: quantmod and zoo: Warning in rbind.zoo(...) : column names differ
Hello;
I am trying following but getting a warning message : Warning in
rbind.zoo(...) : column names differ, no matter whatever I do.
Also I do not want to specify column names manually, since I am just
writing a wrapper function around getSymbols to get chunks of data
from various sources - oanda, dividends etc.
I tried giving col.names = T/F, header = T/F and skip = 1 but no help.
I think
2011 Jul 22
2
Picking returns from particular days of the month from a zoo object
Hello,
I would like to implement a "turn-of-the-month' trading strategy in R.
Given a daily series of stock market return data as a zoo object, the strategy
would go long (buy) four trading days before the end of the month, and sell the
third trading day of the following month.
How can I select these days, particularly the fourth day before and the third
day after the turn of the