MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

DateListPlot question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82113] DateListPlot question
  • From: KTugbawa at gmail.com
  • Date: Fri, 12 Oct 2007 03:00:11 -0400 (EDT)

Hi guys, I am having problems with the DateListPlot function.The data
is a 3-vector database of {dates(row labels), names(column labels) and
returns(matrix of returns, dates*names).

The question is:


Plot each return in the database using the DateListPlot[] function.
Label each graph with the appropriate name and label the axes. The
data looks like this.

{{{1, 31, 2000}, {2, 29, 2000}, {3, 31, 2000}, {4, 30, 2000}, {5, 31,
\
2000},
  {6, 30, 2000}, {7, 31, 2000}, {8, 31, 2000}, {9, 30, 2000}, {10, \
31, 2000},
  {11, 30, 2000}, {12, 31, 2000}, {1, 31, 2001}, {2, 28, 2001},
  {3, 31, 2001}, {4, 30, 2001}, {5, 31, 2001}, {6, 30, 2001}, {7, 31,
\
2001},
  {8, 31, 2001}, {9, 30, 2001}, {10, 31, 2001}, {11, 30, 2001},
  {12, 31, 2001}, {1, 31, 2002}, {2, 28, 2002}, {3, 31, 2002}, {4, \
30, 2002},
  {5, 31, 2002}, {6, 30, 2002}, {7, 31, 2002}, {8, 31, 2002}, {9, 30,
\
2002},
  {10, 31, 2002}, {11, 30, 2002}, {12, 31, 2002}, {1, 31, 2003},
  {2, 28, 2003}, {3, 31, 2003}, {4, 30, 2003}, {5, 31, 2003}, {6, 30,
\
2003},
  {7, 31, 2003}, {8, 31, 2003}, {9, 30, 2003}, {10, 31, 2003},
 {"TBill", "Sp500", "Sp500Lag", "InvOverall", "InvConArb",
  "InvDedShoBia", "InvEmeMar", "InvEquMarNeu", "InvEveDri", \
"InvFixIncArb",
  "InvGloMac", "InvLonEqu", "InvManFut", "InvMul"},
{{0.004597778170251017, -0.051548517342044346, 0.05722700577886285,
   0.016183870529035804, 0.023884038873332125, 0.008682761541719541,
   0.020789657582110266, 0.01924587588373905, 0.016613150914421393,
   0.00991039913114311, -0.0016691957511381084, 0.01889181030285325,
   0.028091701646755007, 0.00742857142857134},
  {0.00467239583591901, -0.019111100799546556, -0.051548517342044346,
\

   0.027168094218415373, 0.017696267696267753, -0.13562880537476385,
   0.05562211192880384, -0.0011560693641616826, 0.016341664377918397,
\

   0.009006586906842307, 0.007447940416476673, 0.10312529867150921,
   0.005339195979899403, 0.048638684061259374}



  • Prev by Date: Non-numeric arguments to Compile-d functions
  • Next by Date: Re: Re: "dereference" variable
  • Previous by thread: DateListPlot question
  • Next by thread: ListPointPlot3D: awkward AxesLabel locations