Odd dates generated in Forecasts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Odd dates generated in Forecasts

PaulJr
Dear friends,

I have a weekly time series which starts on Jan 4th, 2003 and ends on
december 31st, 2016.

I set up my ts object as follows:

MyTseries <- ts(mydataset, start=2003, end=2016, frequency=52)

MyModel <- auto.arima(MyTseries, d=1, D=1)

MyModelForecast <- forecast (MyModel, h=12)

Since my last observation was on december 31st, 2016 I expected my forecast
date to start on 2017, but instead it returned odd dates.

This is my dataset

dput(dataset):

structure(list(Date = structure(c(8L, 22L, 36L, 50L, 64L, 78L,
92L, 106L, 120L, 134L, 148L, 162L, 176L, 190L, 204L, 218L, 232L,
246L, 260L, 274L, 288L, 302L, 316L, 330L, 344L, 358L, 372L, 386L,
400L, 414L, 428L, 442L, 456L, 470L, 484L, 498L, 512L, 526L, 540L,
554L, 568L, 582L, 596L, 610L, 624L, 638L, 652L, 666L, 680L, 694L,
708L, 722L, 5L, 19L, 33L, 47L, 61L, 75L, 89L, 103L, 117L, 130L,
144L, 158L, 172L, 186L, 200L, 214L, 228L, 242L, 256L, 270L, 284L,
298L, 312L, 326L, 340L, 354L, 368L, 382L, 396L, 410L, 424L, 438L,
452L, 466L, 480L, 494L, 508L, 522L, 536L, 550L, 564L, 578L, 592L,
606L, 620L, 634L, 648L, 662L, 676L, 690L, 704L, 718L, 1L, 15L,
29L, 43L, 57L, 71L, 85L, 99L, 113L, 127L, 141L, 155L, 169L, 183L,
197L, 211L, 225L, 239L, 253L, 267L, 281L, 295L, 309L, 323L, 337L,
351L, 365L, 379L, 393L, 407L, 421L, 435L, 449L, 463L, 477L, 491L,
505L, 519L, 533L, 547L, 561L, 575L, 589L, 603L, 617L, 631L, 645L,
659L, 673L, 687L, 701L, 715L, 729L, 13L, 27L, 41L, 55L, 69L,
83L, 97L, 111L, 126L, 140L, 154L, 168L, 182L, 196L, 210L, 224L,
238L, 252L, 266L, 280L, 294L, 308L, 322L, 336L, 350L, 364L, 378L,
392L, 406L, 420L, 434L, 448L, 462L, 476L, 490L, 504L, 518L, 532L,
546L, 560L, 574L, 588L, 602L, 616L, 630L, 644L, 658L, 672L, 686L,
700L, 714L, 728L, 12L, 26L, 40L, 54L, 68L, 82L, 96L, 110L, 124L,
138L, 152L, 166L, 180L, 194L, 208L, 222L, 236L, 250L, 264L, 278L,
292L, 306L, 320L, 334L, 348L, 362L, 376L, 390L, 404L, 418L, 432L,
446L, 460L, 474L, 488L, 502L, 516L, 530L, 544L, 558L, 572L, 586L,
600L, 614L, 628L, 642L, 656L, 670L, 684L, 698L, 712L, 726L, 10L,
24L, 38L, 52L, 66L, 80L, 94L, 108L, 121L, 135L, 149L, 163L, 177L,
191L, 205L, 219L, 233L, 247L, 261L, 275L, 289L, 303L, 317L, 331L,
345L, 359L, 373L, 387L, 401L, 415L, 429L, 443L, 457L, 471L, 485L,
499L, 513L, 527L, 541L, 555L, 569L, 583L, 597L, 611L, 625L, 639L,
653L, 667L, 681L, 695L, 709L, 723L, 6L, 20L, 34L, 48L, 62L, 76L,
90L, 104L, 118L, 132L, 146L, 160L, 174L, 188L, 202L, 216L, 230L,
244L, 258L, 272L, 286L, 300L, 314L, 328L, 342L, 356L, 370L, 384L,
398L, 412L, 426L, 440L, 454L, 468L, 482L, 496L, 510L, 524L, 538L,
552L, 566L, 580L, 594L, 608L, 622L, 636L, 650L, 664L, 678L, 692L,
706L, 720L, 3L, 17L, 31L, 45L, 59L, 73L, 87L, 101L, 115L, 131L,
145L, 159L, 173L, 187L, 201L, 215L, 229L, 243L, 257L, 271L, 285L,
299L, 313L, 327L, 341L, 355L, 369L, 383L, 397L, 411L, 425L, 439L,
453L, 467L, 481L, 495L, 509L, 523L, 537L, 551L, 565L, 579L, 593L,
607L, 621L, 635L, 649L, 663L, 677L, 691L, 705L, 719L, 2L, 16L,
30L, 44L, 58L, 72L, 86L, 100L, 114L, 128L, 142L, 156L, 170L,
184L, 198L, 212L, 226L, 240L, 254L, 268L, 282L, 296L, 310L, 324L,
338L, 352L, 366L, 380L, 394L, 408L, 422L, 436L, 450L, 464L, 478L,
492L, 506L, 520L, 534L, 548L, 562L, 576L, 590L, 604L, 618L, 632L,
646L, 660L, 674L, 688L, 702L, 716L, 730L, 14L, 28L, 42L, 56L,
70L, 84L, 98L, 112L, 125L, 139L, 153L, 167L, 181L, 195L, 209L,
223L, 237L, 251L, 265L, 279L, 293L, 307L, 321L, 335L, 349L, 363L,
377L, 391L, 405L, 419L, 433L, 447L, 461L, 475L, 489L, 503L, 517L,
531L, 545L, 559L, 573L, 587L, 601L, 615L, 629L, 643L, 657L, 671L,
685L, 699L, 713L, 727L, 11L, 25L, 39L, 53L, 67L, 81L, 95L, 109L,
123L, 137L, 151L, 165L, 179L, 193L, 207L, 221L, 235L, 249L, 263L,
277L, 291L, 305L, 319L, 333L, 347L, 361L, 375L, 389L, 403L, 417L,
431L, 445L, 459L, 473L, 487L, 501L, 515L, 529L, 543L, 557L, 571L,
585L, 599L, 613L, 627L, 641L, 655L, 669L, 683L, 697L, 711L, 725L,
9L, 23L, 37L, 51L, 65L, 79L, 93L, 107L, 122L, 136L, 150L, 164L,
178L, 192L, 206L, 220L, 234L, 248L, 262L, 276L, 290L, 304L, 318L,
332L, 346L, 360L, 374L, 388L, 402L, 416L, 430L, 444L, 458L, 472L,
486L, 500L, 514L, 528L, 542L, 556L, 570L, 584L, 598L, 612L, 626L,
640L, 654L, 668L, 682L, 696L, 710L, 724L, 7L, 21L, 35L, 49L,
63L, 77L, 91L, 105L, 119L, 133L, 147L, 161L, 175L, 189L, 203L,
217L, 231L, 245L, 259L, 273L, 287L, 301L, 315L, 329L, 343L, 357L,
371L, 385L, 399L, 413L, 427L, 441L, 455L, 469L, 483L, 497L, 511L,
525L, 539L, 553L, 567L, 581L, 595L, 609L, 623L, 637L, 651L, 665L,
679L, 693L, 707L, 721L, 4L, 18L, 32L, 46L, 60L, 74L, 88L, 102L,
116L, 129L, 143L, 157L, 171L, 185L, 199L, 213L, 227L, 241L, 255L,
269L, 283L, 297L, 311L, 325L, 339L, 353L, 367L, 381L, 395L, 409L,
423L, 437L, 451L, 465L, 479L, 493L, 507L, 521L, 535L, 549L, 563L,
577L, 591L, 605L, 619L, 633L, 647L, 661L, 675L, 689L, 703L, 717L,
731L), .Label = c("01/01/05", "01/01/11", "01/02/10", "01/02/16",
"01/03/04", "01/03/09", "01/03/15", "01/04/03", "01/04/14", "01/05/08",
"01/05/13", "01/06/07", "01/07/06", "01/07/12", "01/08/05", "01/08/11",
"01/09/10", "01/09/16", "01/10/04", "01/10/09", "01/10/15", "01/11/03",
"01/11/14", "01/12/08", "01/12/13", "01/13/07", "01/14/06", "01/14/12",
"01/15/05", "01/15/11", "01/16/10", "01/16/16", "01/17/04", "01/17/09",
"01/17/15", "01/18/03", "01/18/14", "01/19/08", "01/19/13", "01/20/07",
"01/21/06", "01/21/12", "01/22/05", "01/22/11", "01/23/10", "01/23/16",
"01/24/04", "01/24/09", "01/24/15", "01/25/03", "01/25/14", "01/26/08",
"01/26/13", "01/27/07", "01/28/06", "01/28/12", "01/29/05", "01/29/11",
"01/30/10", "01/30/16", "01/31/04", "01/31/09", "01/31/15", "02/01/03",
"02/01/14", "02/02/08", "02/02/13", "02/03/07", "02/04/06", "02/04/12",
"02/05/05", "02/05/11", "02/06/10", "02/06/16", "02/07/04", "02/07/09",
"02/07/15", "02/08/03", "02/08/14", "02/09/08", "02/09/13", "02/10/07",
"02/11/06", "02/11/12", "02/12/05", "02/12/11", "02/13/10", "02/13/16",
"02/14/04", "02/14/09", "02/14/15", "02/15/03", "02/15/14", "02/16/08",
"02/16/13", "02/17/07", "02/18/06", "02/18/12", "02/19/05", "02/19/11",
"02/20/10", "02/20/16", "02/21/04", "02/21/09", "02/21/15", "02/22/03",
"02/22/14", "02/23/08", "02/23/13", "02/24/07", "02/25/06", "02/25/12",
"02/26/05", "02/26/11", "02/27/10", "02/27/16", "02/28/04", "02/28/09",
"02/28/15", "03/01/03", "03/01/08", "03/01/14", "03/02/13", "03/03/07",
"03/03/12", "03/04/06", "03/05/05", "03/05/11", "03/05/16", "03/06/04",
"03/06/10", "03/07/09", "03/07/15", "03/08/03", "03/08/08", "03/08/14",
"03/09/13", "03/10/07", "03/10/12", "03/11/06", "03/12/05", "03/12/11",
"03/12/16", "03/13/04", "03/13/10", "03/14/09", "03/14/15", "03/15/03",
"03/15/08", "03/15/14", "03/16/13", "03/17/07", "03/17/12", "03/18/06",
"03/19/05", "03/19/11", "03/19/16", "03/20/04", "03/20/10", "03/21/09",
"03/21/15", "03/22/03", "03/22/08", "03/22/14", "03/23/13", "03/24/07",
"03/24/12", "03/25/06", "03/26/05", "03/26/11", "03/26/16", "03/27/04",
"03/27/10", "03/28/09", "03/28/15", "03/29/03", "03/29/08", "03/29/14",
"03/30/13", "03/31/07", "03/31/12", "04/01/06", "04/02/05", "04/02/11",
"04/02/16", "04/03/04", "04/03/10", "04/04/09", "04/04/15", "04/05/03",
"04/05/08", "04/05/14", "04/06/13", "04/07/07", "04/07/12", "04/08/06",
"04/09/05", "04/09/11", "04/09/16", "04/10/04", "04/10/10", "04/11/09",
"04/11/15", "04/12/03", "04/12/08", "04/12/14", "04/13/13", "04/14/07",
"04/14/12", "04/15/06", "04/16/05", "04/16/11", "04/16/16", "04/17/04",
"04/17/10", "04/18/09", "04/18/15", "04/19/03", "04/19/08", "04/19/14",
"04/20/13", "04/21/07", "04/21/12", "04/22/06", "04/23/05", "04/23/11",
"04/23/16", "04/24/04", "04/24/10", "04/25/09", "04/25/15", "04/26/03",
"04/26/08", "04/26/14", "04/27/13", "04/28/07", "04/28/12", "04/29/06",
"04/30/05", "04/30/11", "04/30/16", "05/01/04", "05/01/10", "05/02/09",
"05/02/15", "05/03/03", "05/03/08", "05/03/14", "05/04/13", "05/05/07",
"05/05/12", "05/06/06", "05/07/05", "05/07/11", "05/07/16", "05/08/04",
"05/08/10", "05/09/09", "05/09/15", "05/10/03", "05/10/08", "05/10/14",
"05/11/13", "05/12/07", "05/12/12", "05/13/06", "05/14/05", "05/14/11",
"05/14/16", "05/15/04", "05/15/10", "05/16/09", "05/16/15", "05/17/03",
"05/17/08", "05/17/14", "05/18/13", "05/19/07", "05/19/12", "05/20/06",
"05/21/05", "05/21/11", "05/21/16", "05/22/04", "05/22/10", "05/23/09",
"05/23/15", "05/24/03", "05/24/08", "05/24/14", "05/25/13", "05/26/07",
"05/26/12", "05/27/06", "05/28/05", "05/28/11", "05/28/16", "05/29/04",
"05/29/10", "05/30/09", "05/30/15", "05/31/03", "05/31/08", "05/31/14",
"06/01/13", "06/02/07", "06/02/12", "06/03/06", "06/04/05", "06/04/11",
"06/04/16", "06/05/04", "06/05/10", "06/06/09", "06/06/15", "06/07/03",
"06/07/08", "06/07/14", "06/08/13", "06/09/07", "06/09/12", "06/10/06",
"06/11/05", "06/11/11", "06/11/16", "06/12/04", "06/12/10", "06/13/09",
"06/13/15", "06/14/03", "06/14/08", "06/14/14", "06/15/13", "06/16/07",
"06/16/12", "06/17/06", "06/18/05", "06/18/11", "06/18/16", "06/19/04",
"06/19/10", "06/20/09", "06/20/15", "06/21/03", "06/21/08", "06/21/14",
"06/22/13", "06/23/07", "06/23/12", "06/24/06", "06/25/05", "06/25/11",
"06/25/16", "06/26/04", "06/26/10", "06/27/09", "06/27/15", "06/28/03",
"06/28/08", "06/28/14", "06/29/13", "06/30/07", "06/30/12", "07/01/06",
"07/02/05", "07/02/11", "07/02/16", "07/03/04", "07/03/10", "07/04/09",
"07/04/15", "07/05/03", "07/05/08", "07/05/14", "07/06/13", "07/07/07",
"07/07/12", "07/08/06", "07/09/05", "07/09/11", "07/09/16", "07/10/04",
"07/10/10", "07/11/09", "07/11/15", "07/12/03", "07/12/08", "07/12/14",
"07/13/13", "07/14/07", "07/14/12", "07/15/06", "07/16/05", "07/16/11",
"07/16/16", "07/17/04", "07/17/10", "07/18/09", "07/18/15", "07/19/03",
"07/19/08", "07/19/14", "07/20/13", "07/21/07", "07/21/12", "07/22/06",
"07/23/05", "07/23/11", "07/23/16", "07/24/04", "07/24/10", "07/25/09",
"07/25/15", "07/26/03", "07/26/08", "07/26/14", "07/27/13", "07/28/07",
"07/28/12", "07/29/06", "07/30/05", "07/30/11", "07/30/16", "07/31/04",
"07/31/10", "08/01/09", "08/01/15", "08/02/03", "08/02/08", "08/02/14",
"08/03/13", "08/04/07", "08/04/12", "08/05/06", "08/06/05", "08/06/11",
"08/06/16", "08/07/04", "08/07/10", "08/08/09", "08/08/15", "08/09/03",
"08/09/08", "08/09/14", "08/10/13", "08/11/07", "08/11/12", "08/12/06",
"08/13/05", "08/13/11", "08/13/16", "08/14/04", "08/14/10", "08/15/09",
"08/15/15", "08/16/03", "08/16/08", "08/16/14", "08/17/13", "08/18/07",
"08/18/12", "08/19/06", "08/20/05", "08/20/11", "08/20/16", "08/21/04",
"08/21/10", "08/22/09", "08/22/15", "08/23/03", "08/23/08", "08/23/14",
"08/24/13", "08/25/07", "08/25/12", "08/26/06", "08/27/05", "08/27/11",
"08/27/16", "08/28/04", "08/28/10", "08/29/09", "08/29/15", "08/30/03",
"08/30/08", "08/30/14", "08/31/13", "09/01/07", "09/01/12", "09/02/06",
"09/03/05", "09/03/11", "09/03/16", "09/04/04", "09/04/10", "09/05/09",
"09/05/15", "09/06/03", "09/06/08", "09/06/14", "09/07/13", "09/08/07",
"09/08/12", "09/09/06", "09/10/05", "09/10/11", "09/10/16", "09/11/04",
"09/11/10", "09/12/09", "09/12/15", "09/13/03", "09/13/08", "09/13/14",
"09/14/13", "09/15/07", "09/15/12", "09/16/06", "09/17/05", "09/17/11",
"09/17/16", "09/18/04", "09/18/10", "09/19/09", "09/19/15", "09/20/03",
"09/20/08", "09/20/14", "09/21/13", "09/22/07", "09/22/12", "09/23/06",
"09/24/05", "09/24/11", "09/24/16", "09/25/04", "09/25/10", "09/26/09",
"09/26/15", "09/27/03", "09/27/08", "09/27/14", "09/28/13", "09/29/07",
"09/29/12", "09/30/06", "10/01/05", "10/01/11", "10/01/16", "10/02/04",
"10/02/10", "10/03/09", "10/03/15", "10/04/03", "10/04/08", "10/04/14",
"10/05/13", "10/06/07", "10/06/12", "10/07/06", "10/08/05", "10/08/11",
"10/08/16", "10/09/04", "10/09/10", "10/10/09", "10/10/15", "10/11/03",
"10/11/08", "10/11/14", "10/12/13", "10/13/07", "10/13/12", "10/14/06",
"10/15/05", "10/15/11", "10/15/16", "10/16/04", "10/16/10", "10/17/09",
"10/17/15", "10/18/03", "10/18/08", "10/18/14", "10/19/13", "10/20/07",
"10/20/12", "10/21/06", "10/22/05", "10/22/11", "10/22/16", "10/23/04",
"10/23/10", "10/24/09", "10/24/15", "10/25/03", "10/25/08", "10/25/14",
"10/26/13", "10/27/07", "10/27/12", "10/28/06", "10/29/05", "10/29/11",
"10/29/16", "10/30/04", "10/30/10", "10/31/09", "10/31/15", "11/01/03",
"11/01/08", "11/01/14", "11/02/13", "11/03/07", "11/03/12", "11/04/06",
"11/05/05", "11/05/11", "11/05/16", "11/06/04", "11/06/10", "11/07/09",
"11/07/15", "11/08/03", "11/08/08", "11/08/14", "11/09/13", "11/10/07",
"11/10/12", "11/11/06", "11/12/05", "11/12/11", "11/12/16", "11/13/04",
"11/13/10", "11/14/09", "11/14/15", "11/15/03", "11/15/08", "11/15/14",
"11/16/13", "11/17/07", "11/17/12", "11/18/06", "11/19/05", "11/19/11",
"11/19/16", "11/20/04", "11/20/10", "11/21/09", "11/21/15", "11/22/03",
"11/22/08", "11/22/14", "11/23/13", "11/24/07", "11/24/12", "11/25/06",
"11/26/05", "11/26/11", "11/26/16", "11/27/04", "11/27/10", "11/28/09",
"11/28/15", "11/29/03", "11/29/08", "11/29/14", "11/30/13", "12/01/07",
"12/01/12", "12/02/06", "12/03/05", "12/03/11", "12/03/16", "12/04/04",
"12/04/10", "12/05/09", "12/05/15", "12/06/03", "12/06/08", "12/06/14",
"12/07/13", "12/08/07", "12/08/12", "12/09/06", "12/10/05", "12/10/11",
"12/10/16", "12/11/04", "12/11/10", "12/12/09", "12/12/15", "12/13/03",
"12/13/08", "12/13/14", "12/14/13", "12/15/07", "12/15/12", "12/16/06",
"12/17/05", "12/17/11", "12/17/16", "12/18/04", "12/18/10", "12/19/09",
"12/19/15", "12/20/03", "12/20/08", "12/20/14", "12/21/13", "12/22/07",
"12/22/12", "12/23/06", "12/24/05", "12/24/11", "12/24/16", "12/25/04",
"12/25/10", "12/26/09", "12/26/15", "12/27/03", "12/27/08", "12/27/14",
"12/28/13", "12/29/07", "12/29/12", "12/30/06", "12/31/05", "12/31/11",
"12/31/16"), class = "factor"), Transits = c(11L, 17L, 14L, 18L,
12L, 14L, 21L, 14L, 16L, 10L, 11L, 10L, 6L, 8L, 12L, 11L, 8L,
6L, 7L, 9L, 6L, 5L, 3L, 12L, 10L, 5L, 6L, 5L, 9L, 14L, 6L, 6L,
5L, 6L, 7L, 6L, 5L, 6L, 4L, 14L, 10L, 7L, 9L, 8L, 9L, 12L, 12L,
13L, 9L, 15L, 19L, 9L, 8L, 7L, 8L, 16L, 19L, 14L, 15L, 7L, 12L,
16L, 15L, 10L, 17L, 7L, 5L, 6L, 10L, 4L, 5L, 5L, 9L, 5L, 2L,
6L, 8L, 5L, 4L, 8L, 7L, 9L, 6L, 7L, 8L, 5L, 9L, 7L, 5L, 13L,
11L, 15L, 9L, 11L, 17L, 17L, 10L, 14L, 20L, 18L, 8L, 17L, 7L,
12L, 9L, 10L, 6L, 7L, 11L, 9L, 7L, 10L, 7L, 10L, 13L, 12L, 10L,
8L, 11L, 10L, 9L, 10L, 8L, 9L, 6L, 9L, 7L, 6L, 6L, 11L, 10L,
5L, 4L, 7L, 14L, 11L, 8L, 10L, 7L, 5L, 4L, 8L, 6L, 15L, 11L,
14L, 16L, 18L, 20L, 14L, 18L, 14L, 13L, 16L, 17L, 9L, 11L, 16L,
13L, 12L, 11L, 16L, 16L, 17L, 21L, 13L, 19L, 16L, 14L, 13L, 11L,
8L, 8L, 19L, 9L, 11L, 10L, 17L, 12L, 10L, 11L, 13L, 12L, 11L,
8L, 12L, 19L, 14L, 9L, 9L, 16L, 20L, 13L, 12L, 14L, 13L, 12L,
18L, 13L, 12L, 19L, 16L, 16L, 17L, 16L, 20L, 20L, 13L, 14L, 13L,
7L, 16L, 15L, 17L, 16L, 15L, 17L, 18L, 17L, 16L, 14L, 12L, 9L,
9L, 6L, 14L, 8L, 17L, 9L, 12L, 11L, 8L, 11L, 10L, 13L, 7L, 4L,
10L, 12L, 11L, 8L, 8L, 13L, 6L, 9L, 6L, 18L, 11L, 13L, 10L, 17L,
14L, 10L, 14L, 11L, 15L, 19L, 17L, 15L, 18L, 14L, 12L, 20L, 12L,
12L, 16L, 16L, 17L, 11L, 10L, 11L, 13L, 16L, 17L, 9L, 11L, 13L,
7L, 7L, 7L, 10L, 9L, 5L, 12L, 8L, 8L, 10L, 10L, 12L, 9L, 8L,
9L, 12L, 10L, 9L, 6L, 9L, 2L, 9L, 8L, 10L, 12L, 13L, 15L, 12L,
13L, 12L, 17L, 18L, 14L, 21L, 15L, 19L, 15L, 11L, 18L, 20L, 18L,
19L, 19L, 18L, 20L, 16L, 15L, 11L, 20L, 12L, 13L, 12L, 10L, 11L,
12L, 14L, 9L, 7L, 11L, 12L, 14L, 11L, 11L, 9L, 20L, 9L, 11L,
9L, 10L, 9L, 15L, 8L, 8L, 13L, 10L, 15L, 11L, 14L, 16L, 25L,
20L, 23L, 31L, 29L, 21L, 20L, 16L, 25L, 20L, 16L, 20L, 21L, 19L,
16L, 22L, 17L, 18L, 20L, 16L, 15L, 14L, 15L, 10L, 7L, 15L, 10L,
5L, 14L, 7L, 16L, 11L, 12L, 8L, 8L, 8L, 9L, 9L, 9L, 14L, 5L,
12L, 9L, 8L, 11L, 11L, 7L, 11L, 16L, 18L, 17L, 31L, 21L, 30L,
21L, 29L, 26L, 22L, 14L, 26L, 19L, 20L, 10L, 15L, 22L, 15L, 21L,
13L, 19L, 19L, 22L, 19L, 15L, 16L, 18L, 15L, 13L, 13L, 8L, 6L,
9L, 9L, 11L, 10L, 7L, 7L, 8L, 11L, 7L, 7L, 10L, 6L, 8L, 9L, 5L,
10L, 6L, 8L, 12L, 6L, 17L, 12L, 16L, 13L, 14L, 18L, 25L, 19L,
19L, 24L, 14L, 18L, 20L, 18L, 16L, 17L, 12L, 21L, 20L, 18L, 15L,
12L, 13L, 11L, 9L, 10L, 11L, 8L, 12L, 12L, 4L, 5L, 5L, 11L, 9L,
10L, 7L, 3L, 13L, 6L, 10L, 9L, 9L, 10L, 10L, 8L, 10L, 6L, 12L,
5L, 12L, 13L, 19L, 10L, 14L, 20L, 19L, 20L, 16L, 22L, 16L, 24L,
16L, 20L, 20L, 13L, 9L, 11L, 8L, 13L, 16L, 10L, 13L, 11L, 15L,
6L, 6L, 5L, 7L, 3L, 7L, 4L, 7L, 6L, 5L, 4L, 7L, 10L, 5L, 7L,
1L, 6L, 10L, 5L, 8L, 8L, 10L, 6L, 6L, 11L, 8L, 7L, 10L, 12L,
11L, 14L, 17L, 20L, 29L, 21L, 24L, 25L, 32L, 26L, 29L, 18L, 22L,
19L, 16L, 17L, 25L, 16L, 24L, 21L, 16L, 25L, 16L, 23L, 23L, 16L,
14L, 18L, 12L, 17L, 16L, 9L, 12L, 5L, 11L, 9L, 8L, 13L, 10L,
6L, 6L, 10L, 14L, 12L, 7L, 13L, 10L, 14L, 13L, 4L, 16L, 19L,
16L, 15L, 30L, 26L, 29L, 31L, 22L, 26L, 35L, 35L, 30L, 21L, 25L,
31L, 20L, 21L, 23L, 27L, 21L, 24L, 16L, 28L, 11L, 19L, 16L, 13L,
14L, 13L, 19L, 15L, 15L, 22L, 14L, 24L, 16L, 16L, 12L, 12L, 14L,
14L, 12L, 16L, 8L, 10L, 15L, 16L, 11L, 16L, 9L, 15L, 12L, 15L,
6L, 15L, 19L, 19L, 20L, 19L, 21L, 20L, 23L, 21L, 15L, 15L, 24L,
13L, 9L, 11L, 10L, 11L, 13L, 15L, 9L, 17L, 22L, 16L, 16L, 13L,
15L, 15L, 13L, 11L, 11L, 15L, 10L, 12L, 14L, 6L, 11L, 9L, 12L,
4L, 12L, 7L, 9L, 7L, 15L, 13L, 12L, 8L, 5L, 16L, 13L, 13L, 15L,
16L, 16L, 13L, 21L, 15L, 18L, 22L, 12L, 16L, 25L, 14L, 17L, 12L,
10L)), .Names = c("Date", "Transits"), class = "data.frame", row.names =
c(NA,
-731L))


This is the result I get from the forecast:

dput(Forecasts):

structure(list(Point.Forecast = c(19.4253367238618, 12.2907914272766,
12.9624076300088, 18.0807466065309, 15.9843908802223, 16.5321579531827,
16.7184964071333, 10.1201838392972, 20.7203714449961, 7.45002607776652,
14.9836817432811, 13.3820472411712), Lo.80 = c(13.9434152149432,
6.74027066336727, 7.25612824519892, 12.2923074967212, 10.0690364921587,
10.501665758874, 10.5705243712663, 3.85957289110304, 14.3484486381226,
0.968987377892339, 8.39518758108775, 6.6878669395083), Hi.80 =
c(24.9072582327803,
17.841312191186, 18.6686870148187, 23.8691857163406, 21.8997452682858,
22.5626501474914, 22.8664684430002, 16.3807947874913, 27.0922942518695,
13.9310647776407, 21.5721759054744, 20.0762275428341), Lo.95 =
c(11.0414612619408,
3.80200245835122, 4.23540640692652, 9.2280929272317, 6.93763703269479,
7.30931602651216, 7.31598456740248, 0.545405648875148, 10.975356457297,
-2.4618672675205, 4.90744944999539, 3.14418194567588), Hi.95 =
c(27.8092121857828,
20.779580396202, 21.6894088530911, 26.9334002858301, 25.0311447277497,
25.7549998798532, 26.121008246864, 19.6949620297192, 30.4653864326951,
17.3619194230535, 25.0599140365668, 23.6199125366665)), .Names =
c("Point.Forecast",
"Lo.80", "Hi.80", "Lo.95", "Hi.95"), row.names = c("2016.019",
"2016.038", "2016.058", "2016.077", "2016.096", "2016.115", "2016.135",
"2016.154", "2016.173", "2016.192", "2016.212", "2016.231"), class =
"data.frame")

Thank you beforehand for your valuable support,

Best regards,

Paul

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Odd dates generated in Forecasts

David Winsemius

> On Dec 6, 2017, at 5:07 AM, Paul Bernal <[hidden email]> wrote:
>
> Dear friends,
>
> I have a weekly time series which starts on Jan 4th, 2003 and ends on
> december 31st, 2016.
>
> I set up my ts object as follows:
>
> MyTseries <- ts(mydataset, start=2003, end=2016, frequency=52)
>
> MyModel <- auto.arima(MyTseries, d=1, D=1)
>
> MyModelForecast <- forecast (MyModel, h=12)
>
> Since my last observation was on december 31st, 2016 I expected my forecast
> date to start on 2017, but instead it returned odd dates.
>
> This is my dataset
>
> dput(dataset):
>
> structure(list(Date = structure(c(8L, 22L, 36L, 50L, 64L, 78L,
> 92L, 106L, 120L, 134L, 148L, 162L, 176L, 190L, 204L, 218L, 232L,
> 246L, 260L, 274L, 288L, 302L, 316L, 330L, 344L, 358L, 372L, 386L,
> 400L, 414L, 428L, 442L, 456L, 470L, 484L, 498L, 512L, 526L, 540L,
> 554L, 568L, 582L, 596L, 610L, 624L, 638L, 652L, 666L, 680L, 694L,
> 708L, 722L, 5L, 19L, 33L, 47L, 61L, 75L, 89L, 103L, 117L, 130L,
> 144L, 158L, 172L, 186L, 200L, 214L, 228L, 242L, 256L, 270L, 284L,
> 298L, 312L, 326L, 340L, 354L, 368L, 382L, 396L, 410L, 424L, 438L,
> 452L, 466L, 480L, 494L, 508L, 522L, 536L, 550L, 564L, 578L, 592L,
> 606L, 620L, 634L, 648L, 662L, 676L, 690L, 704L, 718L, 1L, 15L,
> 29L, 43L, 57L, 71L, 85L, 99L, 113L, 127L, 141L, 155L, 169L, 183L,
> 197L, 211L, 225L, 239L, 253L, 267L, 281L, 295L, 309L, 323L, 337L,
> 351L, 365L, 379L, 393L, 407L, 421L, 435L, 449L, 463L, 477L, 491L,
> 505L, 519L, 533L, 547L, 561L, 575L, 589L, 603L, 617L, 631L, 645L,
> 659L, 673L, 687L, 701L, 715L, 729L, 13L, 27L, 41L, 55L, 69L,
> 83L, 97L, 111L, 126L, 140L, 154L, 168L, 182L, 196L, 210L, 224L,
> 238L, 252L, 266L, 280L, 294L, 308L, 322L, 336L, 350L, 364L, 378L,
> 392L, 406L, 420L, 434L, 448L, 462L, 476L, 490L, 504L, 518L, 532L,
> 546L, 560L, 574L, 588L, 602L, 616L, 630L, 644L, 658L, 672L, 686L,
> 700L, 714L, 728L, 12L, 26L, 40L, 54L, 68L, 82L, 96L, 110L, 124L,
> 138L, 152L, 166L, 180L, 194L, 208L, 222L, 236L, 250L, 264L, 278L,
> 292L, 306L, 320L, 334L, 348L, 362L, 376L, 390L, 404L, 418L, 432L,
> 446L, 460L, 474L, 488L, 502L, 516L, 530L, 544L, 558L, 572L, 586L,
> 600L, 614L, 628L, 642L, 656L, 670L, 684L, 698L, 712L, 726L, 10L,
> 24L, 38L, 52L, 66L, 80L, 94L, 108L, 121L, 135L, 149L, 163L, 177L,
> 191L, 205L, 219L, 233L, 247L, 261L, 275L, 289L, 303L, 317L, 331L,
> 345L, 359L, 373L, 387L, 401L, 415L, 429L, 443L, 457L, 471L, 485L,
> 499L, 513L, 527L, 541L, 555L, 569L, 583L, 597L, 611L, 625L, 639L,
> 653L, 667L, 681L, 695L, 709L, 723L, 6L, 20L, 34L, 48L, 62L, 76L,
> 90L, 104L, 118L, 132L, 146L, 160L, 174L, 188L, 202L, 216L, 230L,
> 244L, 258L, 272L, 286L, 300L, 314L, 328L, 342L, 356L, 370L, 384L,
> 398L, 412L, 426L, 440L, 454L, 468L, 482L, 496L, 510L, 524L, 538L,
> 552L, 566L, 580L, 594L, 608L, 622L, 636L, 650L, 664L, 678L, 692L,
> 706L, 720L, 3L, 17L, 31L, 45L, 59L, 73L, 87L, 101L, 115L, 131L,
> 145L, 159L, 173L, 187L, 201L, 215L, 229L, 243L, 257L, 271L, 285L,
> 299L, 313L, 327L, 341L, 355L, 369L, 383L, 397L, 411L, 425L, 439L,
> 453L, 467L, 481L, 495L, 509L, 523L, 537L, 551L, 565L, 579L, 593L,
> 607L, 621L, 635L, 649L, 663L, 677L, 691L, 705L, 719L, 2L, 16L,
> 30L, 44L, 58L, 72L, 86L, 100L, 114L, 128L, 142L, 156L, 170L,
> 184L, 198L, 212L, 226L, 240L, 254L, 268L, 282L, 296L, 310L, 324L,
> 338L, 352L, 366L, 380L, 394L, 408L, 422L, 436L, 450L, 464L, 478L,
> 492L, 506L, 520L, 534L, 548L, 562L, 576L, 590L, 604L, 618L, 632L,
> 646L, 660L, 674L, 688L, 702L, 716L, 730L, 14L, 28L, 42L, 56L,
> 70L, 84L, 98L, 112L, 125L, 139L, 153L, 167L, 181L, 195L, 209L,
> 223L, 237L, 251L, 265L, 279L, 293L, 307L, 321L, 335L, 349L, 363L,
> 377L, 391L, 405L, 419L, 433L, 447L, 461L, 475L, 489L, 503L, 517L,
> 531L, 545L, 559L, 573L, 587L, 601L, 615L, 629L, 643L, 657L, 671L,
> 685L, 699L, 713L, 727L, 11L, 25L, 39L, 53L, 67L, 81L, 95L, 109L,
> 123L, 137L, 151L, 165L, 179L, 193L, 207L, 221L, 235L, 249L, 263L,
> 277L, 291L, 305L, 319L, 333L, 347L, 361L, 375L, 389L, 403L, 417L,
> 431L, 445L, 459L, 473L, 487L, 501L, 515L, 529L, 543L, 557L, 571L,
> 585L, 599L, 613L, 627L, 641L, 655L, 669L, 683L, 697L, 711L, 725L,
> 9L, 23L, 37L, 51L, 65L, 79L, 93L, 107L, 122L, 136L, 150L, 164L,
> 178L, 192L, 206L, 220L, 234L, 248L, 262L, 276L, 290L, 304L, 318L,
> 332L, 346L, 360L, 374L, 388L, 402L, 416L, 430L, 444L, 458L, 472L,
> 486L, 500L, 514L, 528L, 542L, 556L, 570L, 584L, 598L, 612L, 626L,
> 640L, 654L, 668L, 682L, 696L, 710L, 724L, 7L, 21L, 35L, 49L,
> 63L, 77L, 91L, 105L, 119L, 133L, 147L, 161L, 175L, 189L, 203L,
> 217L, 231L, 245L, 259L, 273L, 287L, 301L, 315L, 329L, 343L, 357L,
> 371L, 385L, 399L, 413L, 427L, 441L, 455L, 469L, 483L, 497L, 511L,
> 525L, 539L, 553L, 567L, 581L, 595L, 609L, 623L, 637L, 651L, 665L,
> 679L, 693L, 707L, 721L, 4L, 18L, 32L, 46L, 60L, 74L, 88L, 102L,
> 116L, 129L, 143L, 157L, 171L, 185L, 199L, 213L, 227L, 241L, 255L,
> 269L, 283L, 297L, 311L, 325L, 339L, 353L, 367L, 381L, 395L, 409L,
> 423L, 437L, 451L, 465L, 479L, 493L, 507L, 521L, 535L, 549L, 563L,
> 577L, 591L, 605L, 619L, 633L, 647L, 661L, 675L, 689L, 703L, 717L,
> 731L), .Label = c("01/01/05", "01/01/11", "01/02/10", "01/02/16",
> "01/03/04", "01/03/09", "01/03/15", "01/04/03", "01/04/14", "01/05/08",
> "01/05/13", "01/06/07", "01/07/06", "01/07/12", "01/08/05", "01/08/11",
> "01/09/10", "01/09/16", "01/10/04", "01/10/09", "01/10/15", "01/11/03",
> "01/11/14", "01/12/08", "01/12/13", "01/13/07", "01/14/06", "01/14/12",
> "01/15/05", "01/15/11", "01/16/10", "01/16/16", "01/17/04", "01/17/09",
> "01/17/15", "01/18/03", "01/18/14", "01/19/08", "01/19/13", "01/20/07",
> "01/21/06", "01/21/12", "01/22/05", "01/22/11", "01/23/10", "01/23/16",
> "01/24/04", "01/24/09", "01/24/15", "01/25/03", "01/25/14", "01/26/08",
> "01/26/13", "01/27/07", "01/28/06", "01/28/12", "01/29/05", "01/29/11",
> "01/30/10", "01/30/16", "01/31/04", "01/31/09", "01/31/15", "02/01/03",
> "02/01/14", "02/02/08", "02/02/13", "02/03/07", "02/04/06", "02/04/12",
> "02/05/05", "02/05/11", "02/06/10", "02/06/16", "02/07/04", "02/07/09",
> "02/07/15", "02/08/03", "02/08/14", "02/09/08", "02/09/13", "02/10/07",
> "02/11/06", "02/11/12", "02/12/05", "02/12/11", "02/13/10", "02/13/16",
> "02/14/04", "02/14/09", "02/14/15", "02/15/03", "02/15/14", "02/16/08",
> "02/16/13", "02/17/07", "02/18/06", "02/18/12", "02/19/05", "02/19/11",
> "02/20/10", "02/20/16", "02/21/04", "02/21/09", "02/21/15", "02/22/03",
> "02/22/14", "02/23/08", "02/23/13", "02/24/07", "02/25/06", "02/25/12",
> "02/26/05", "02/26/11", "02/27/10", "02/27/16", "02/28/04", "02/28/09",
> "02/28/15", "03/01/03", "03/01/08", "03/01/14", "03/02/13", "03/03/07",
> "03/03/12", "03/04/06", "03/05/05", "03/05/11", "03/05/16", "03/06/04",
> "03/06/10", "03/07/09", "03/07/15", "03/08/03", "03/08/08", "03/08/14",
> "03/09/13", "03/10/07", "03/10/12", "03/11/06", "03/12/05", "03/12/11",
> "03/12/16", "03/13/04", "03/13/10", "03/14/09", "03/14/15", "03/15/03",
> "03/15/08", "03/15/14", "03/16/13", "03/17/07", "03/17/12", "03/18/06",
> "03/19/05", "03/19/11", "03/19/16", "03/20/04", "03/20/10", "03/21/09",
> "03/21/15", "03/22/03", "03/22/08", "03/22/14", "03/23/13", "03/24/07",
> "03/24/12", "03/25/06", "03/26/05", "03/26/11", "03/26/16", "03/27/04",
> "03/27/10", "03/28/09", "03/28/15", "03/29/03", "03/29/08", "03/29/14",
> "03/30/13", "03/31/07", "03/31/12", "04/01/06", "04/02/05", "04/02/11",
> "04/02/16", "04/03/04", "04/03/10", "04/04/09", "04/04/15", "04/05/03",
> "04/05/08", "04/05/14", "04/06/13", "04/07/07", "04/07/12", "04/08/06",
> "04/09/05", "04/09/11", "04/09/16", "04/10/04", "04/10/10", "04/11/09",
> "04/11/15", "04/12/03", "04/12/08", "04/12/14", "04/13/13", "04/14/07",
> "04/14/12", "04/15/06", "04/16/05", "04/16/11", "04/16/16", "04/17/04",
> "04/17/10", "04/18/09", "04/18/15", "04/19/03", "04/19/08", "04/19/14",
> "04/20/13", "04/21/07", "04/21/12", "04/22/06", "04/23/05", "04/23/11",
> "04/23/16", "04/24/04", "04/24/10", "04/25/09", "04/25/15", "04/26/03",
> "04/26/08", "04/26/14", "04/27/13", "04/28/07", "04/28/12", "04/29/06",
> "04/30/05", "04/30/11", "04/30/16", "05/01/04", "05/01/10", "05/02/09",
> "05/02/15", "05/03/03", "05/03/08", "05/03/14", "05/04/13", "05/05/07",
> "05/05/12", "05/06/06", "05/07/05", "05/07/11", "05/07/16", "05/08/04",
> "05/08/10", "05/09/09", "05/09/15", "05/10/03", "05/10/08", "05/10/14",
> "05/11/13", "05/12/07", "05/12/12", "05/13/06", "05/14/05", "05/14/11",
> "05/14/16", "05/15/04", "05/15/10", "05/16/09", "05/16/15", "05/17/03",
> "05/17/08", "05/17/14", "05/18/13", "05/19/07", "05/19/12", "05/20/06",
> "05/21/05", "05/21/11", "05/21/16", "05/22/04", "05/22/10", "05/23/09",
> "05/23/15", "05/24/03", "05/24/08", "05/24/14", "05/25/13", "05/26/07",
> "05/26/12", "05/27/06", "05/28/05", "05/28/11", "05/28/16", "05/29/04",
> "05/29/10", "05/30/09", "05/30/15", "05/31/03", "05/31/08", "05/31/14",
> "06/01/13", "06/02/07", "06/02/12", "06/03/06", "06/04/05", "06/04/11",
> "06/04/16", "06/05/04", "06/05/10", "06/06/09", "06/06/15", "06/07/03",
> "06/07/08", "06/07/14", "06/08/13", "06/09/07", "06/09/12", "06/10/06",
> "06/11/05", "06/11/11", "06/11/16", "06/12/04", "06/12/10", "06/13/09",
> "06/13/15", "06/14/03", "06/14/08", "06/14/14", "06/15/13", "06/16/07",
> "06/16/12", "06/17/06", "06/18/05", "06/18/11", "06/18/16", "06/19/04",
> "06/19/10", "06/20/09", "06/20/15", "06/21/03", "06/21/08", "06/21/14",
> "06/22/13", "06/23/07", "06/23/12", "06/24/06", "06/25/05", "06/25/11",
> "06/25/16", "06/26/04", "06/26/10", "06/27/09", "06/27/15", "06/28/03",
> "06/28/08", "06/28/14", "06/29/13", "06/30/07", "06/30/12", "07/01/06",
> "07/02/05", "07/02/11", "07/02/16", "07/03/04", "07/03/10", "07/04/09",
> "07/04/15", "07/05/03", "07/05/08", "07/05/14", "07/06/13", "07/07/07",
> "07/07/12", "07/08/06", "07/09/05", "07/09/11", "07/09/16", "07/10/04",
> "07/10/10", "07/11/09", "07/11/15", "07/12/03", "07/12/08", "07/12/14",
> "07/13/13", "07/14/07", "07/14/12", "07/15/06", "07/16/05", "07/16/11",
> "07/16/16", "07/17/04", "07/17/10", "07/18/09", "07/18/15", "07/19/03",
> "07/19/08", "07/19/14", "07/20/13", "07/21/07", "07/21/12", "07/22/06",
> "07/23/05", "07/23/11", "07/23/16", "07/24/04", "07/24/10", "07/25/09",
> "07/25/15", "07/26/03", "07/26/08", "07/26/14", "07/27/13", "07/28/07",
> "07/28/12", "07/29/06", "07/30/05", "07/30/11", "07/30/16", "07/31/04",
> "07/31/10", "08/01/09", "08/01/15", "08/02/03", "08/02/08", "08/02/14",
> "08/03/13", "08/04/07", "08/04/12", "08/05/06", "08/06/05", "08/06/11",
> "08/06/16", "08/07/04", "08/07/10", "08/08/09", "08/08/15", "08/09/03",
> "08/09/08", "08/09/14", "08/10/13", "08/11/07", "08/11/12", "08/12/06",
> "08/13/05", "08/13/11", "08/13/16", "08/14/04", "08/14/10", "08/15/09",
> "08/15/15", "08/16/03", "08/16/08", "08/16/14", "08/17/13", "08/18/07",
> "08/18/12", "08/19/06", "08/20/05", "08/20/11", "08/20/16", "08/21/04",
> "08/21/10", "08/22/09", "08/22/15", "08/23/03", "08/23/08", "08/23/14",
> "08/24/13", "08/25/07", "08/25/12", "08/26/06", "08/27/05", "08/27/11",
> "08/27/16", "08/28/04", "08/28/10", "08/29/09", "08/29/15", "08/30/03",
> "08/30/08", "08/30/14", "08/31/13", "09/01/07", "09/01/12", "09/02/06",
> "09/03/05", "09/03/11", "09/03/16", "09/04/04", "09/04/10", "09/05/09",
> "09/05/15", "09/06/03", "09/06/08", "09/06/14", "09/07/13", "09/08/07",
> "09/08/12", "09/09/06", "09/10/05", "09/10/11", "09/10/16", "09/11/04",
> "09/11/10", "09/12/09", "09/12/15", "09/13/03", "09/13/08", "09/13/14",
> "09/14/13", "09/15/07", "09/15/12", "09/16/06", "09/17/05", "09/17/11",
> "09/17/16", "09/18/04", "09/18/10", "09/19/09", "09/19/15", "09/20/03",
> "09/20/08", "09/20/14", "09/21/13", "09/22/07", "09/22/12", "09/23/06",
> "09/24/05", "09/24/11", "09/24/16", "09/25/04", "09/25/10", "09/26/09",
> "09/26/15", "09/27/03", "09/27/08", "09/27/14", "09/28/13", "09/29/07",
> "09/29/12", "09/30/06", "10/01/05", "10/01/11", "10/01/16", "10/02/04",
> "10/02/10", "10/03/09", "10/03/15", "10/04/03", "10/04/08", "10/04/14",
> "10/05/13", "10/06/07", "10/06/12", "10/07/06", "10/08/05", "10/08/11",
> "10/08/16", "10/09/04", "10/09/10", "10/10/09", "10/10/15", "10/11/03",
> "10/11/08", "10/11/14", "10/12/13", "10/13/07", "10/13/12", "10/14/06",
> "10/15/05", "10/15/11", "10/15/16", "10/16/04", "10/16/10", "10/17/09",
> "10/17/15", "10/18/03", "10/18/08", "10/18/14", "10/19/13", "10/20/07",
> "10/20/12", "10/21/06", "10/22/05", "10/22/11", "10/22/16", "10/23/04",
> "10/23/10", "10/24/09", "10/24/15", "10/25/03", "10/25/08", "10/25/14",
> "10/26/13", "10/27/07", "10/27/12", "10/28/06", "10/29/05", "10/29/11",
> "10/29/16", "10/30/04", "10/30/10", "10/31/09", "10/31/15", "11/01/03",
> "11/01/08", "11/01/14", "11/02/13", "11/03/07", "11/03/12", "11/04/06",
> "11/05/05", "11/05/11", "11/05/16", "11/06/04", "11/06/10", "11/07/09",
> "11/07/15", "11/08/03", "11/08/08", "11/08/14", "11/09/13", "11/10/07",
> "11/10/12", "11/11/06", "11/12/05", "11/12/11", "11/12/16", "11/13/04",
> "11/13/10", "11/14/09", "11/14/15", "11/15/03", "11/15/08", "11/15/14",
> "11/16/13", "11/17/07", "11/17/12", "11/18/06", "11/19/05", "11/19/11",
> "11/19/16", "11/20/04", "11/20/10", "11/21/09", "11/21/15", "11/22/03",
> "11/22/08", "11/22/14", "11/23/13", "11/24/07", "11/24/12", "11/25/06",
> "11/26/05", "11/26/11", "11/26/16", "11/27/04", "11/27/10", "11/28/09",
> "11/28/15", "11/29/03", "11/29/08", "11/29/14", "11/30/13", "12/01/07",
> "12/01/12", "12/02/06", "12/03/05", "12/03/11", "12/03/16", "12/04/04",
> "12/04/10", "12/05/09", "12/05/15", "12/06/03", "12/06/08", "12/06/14",
> "12/07/13", "12/08/07", "12/08/12", "12/09/06", "12/10/05", "12/10/11",
> "12/10/16", "12/11/04", "12/11/10", "12/12/09", "12/12/15", "12/13/03",
> "12/13/08", "12/13/14", "12/14/13", "12/15/07", "12/15/12", "12/16/06",
> "12/17/05", "12/17/11", "12/17/16", "12/18/04", "12/18/10", "12/19/09",
> "12/19/15", "12/20/03", "12/20/08", "12/20/14", "12/21/13", "12/22/07",
> "12/22/12", "12/23/06", "12/24/05", "12/24/11", "12/24/16", "12/25/04",
> "12/25/10", "12/26/09", "12/26/15", "12/27/03", "12/27/08", "12/27/14",
> "12/28/13", "12/29/07", "12/29/12", "12/30/06", "12/31/05", "12/31/11",
> "12/31/16"), class = "factor"),

Those are not R dates. Unless you convert to dates then they will have alpha sort order which is probably NOT what you expected.

Perhaps:

dat$fixed_dates <- as.Date( as.character(dat$Date), format="%m/%d/%y")



--
David

> Transits = c(11L, 17L, 14L, 18L,
> 12L, 14L, 21L, 14L, 16L, 10L, 11L, 10L, 6L, 8L, 12L, 11L, 8L,
> 6L, 7L, 9L, 6L, 5L, 3L, 12L, 10L, 5L, 6L, 5L, 9L, 14L, 6L, 6L,
> 5L, 6L, 7L, 6L, 5L, 6L, 4L, 14L, 10L, 7L, 9L, 8L, 9L, 12L, 12L,
> 13L, 9L, 15L, 19L, 9L, 8L, 7L, 8L, 16L, 19L, 14L, 15L, 7L, 12L,
> 16L, 15L, 10L, 17L, 7L, 5L, 6L, 10L, 4L, 5L, 5L, 9L, 5L, 2L,
> 6L, 8L, 5L, 4L, 8L, 7L, 9L, 6L, 7L, 8L, 5L, 9L, 7L, 5L, 13L,
> 11L, 15L, 9L, 11L, 17L, 17L, 10L, 14L, 20L, 18L, 8L, 17L, 7L,
> 12L, 9L, 10L, 6L, 7L, 11L, 9L, 7L, 10L, 7L, 10L, 13L, 12L, 10L,
> 8L, 11L, 10L, 9L, 10L, 8L, 9L, 6L, 9L, 7L, 6L, 6L, 11L, 10L,
> 5L, 4L, 7L, 14L, 11L, 8L, 10L, 7L, 5L, 4L, 8L, 6L, 15L, 11L,
> 14L, 16L, 18L, 20L, 14L, 18L, 14L, 13L, 16L, 17L, 9L, 11L, 16L,
> 13L, 12L, 11L, 16L, 16L, 17L, 21L, 13L, 19L, 16L, 14L, 13L, 11L,
> 8L, 8L, 19L, 9L, 11L, 10L, 17L, 12L, 10L, 11L, 13L, 12L, 11L,
> 8L, 12L, 19L, 14L, 9L, 9L, 16L, 20L, 13L, 12L, 14L, 13L, 12L,
> 18L, 13L, 12L, 19L, 16L, 16L, 17L, 16L, 20L, 20L, 13L, 14L, 13L,
> 7L, 16L, 15L, 17L, 16L, 15L, 17L, 18L, 17L, 16L, 14L, 12L, 9L,
> 9L, 6L, 14L, 8L, 17L, 9L, 12L, 11L, 8L, 11L, 10L, 13L, 7L, 4L,
> 10L, 12L, 11L, 8L, 8L, 13L, 6L, 9L, 6L, 18L, 11L, 13L, 10L, 17L,
> 14L, 10L, 14L, 11L, 15L, 19L, 17L, 15L, 18L, 14L, 12L, 20L, 12L,
> 12L, 16L, 16L, 17L, 11L, 10L, 11L, 13L, 16L, 17L, 9L, 11L, 13L,
> 7L, 7L, 7L, 10L, 9L, 5L, 12L, 8L, 8L, 10L, 10L, 12L, 9L, 8L,
> 9L, 12L, 10L, 9L, 6L, 9L, 2L, 9L, 8L, 10L, 12L, 13L, 15L, 12L,
> 13L, 12L, 17L, 18L, 14L, 21L, 15L, 19L, 15L, 11L, 18L, 20L, 18L,
> 19L, 19L, 18L, 20L, 16L, 15L, 11L, 20L, 12L, 13L, 12L, 10L, 11L,
> 12L, 14L, 9L, 7L, 11L, 12L, 14L, 11L, 11L, 9L, 20L, 9L, 11L,
> 9L, 10L, 9L, 15L, 8L, 8L, 13L, 10L, 15L, 11L, 14L, 16L, 25L,
> 20L, 23L, 31L, 29L, 21L, 20L, 16L, 25L, 20L, 16L, 20L, 21L, 19L,
> 16L, 22L, 17L, 18L, 20L, 16L, 15L, 14L, 15L, 10L, 7L, 15L, 10L,
> 5L, 14L, 7L, 16L, 11L, 12L, 8L, 8L, 8L, 9L, 9L, 9L, 14L, 5L,
> 12L, 9L, 8L, 11L, 11L, 7L, 11L, 16L, 18L, 17L, 31L, 21L, 30L,
> 21L, 29L, 26L, 22L, 14L, 26L, 19L, 20L, 10L, 15L, 22L, 15L, 21L,
> 13L, 19L, 19L, 22L, 19L, 15L, 16L, 18L, 15L, 13L, 13L, 8L, 6L,
> 9L, 9L, 11L, 10L, 7L, 7L, 8L, 11L, 7L, 7L, 10L, 6L, 8L, 9L, 5L,
> 10L, 6L, 8L, 12L, 6L, 17L, 12L, 16L, 13L, 14L, 18L, 25L, 19L,
> 19L, 24L, 14L, 18L, 20L, 18L, 16L, 17L, 12L, 21L, 20L, 18L, 15L,
> 12L, 13L, 11L, 9L, 10L, 11L, 8L, 12L, 12L, 4L, 5L, 5L, 11L, 9L,
> 10L, 7L, 3L, 13L, 6L, 10L, 9L, 9L, 10L, 10L, 8L, 10L, 6L, 12L,
> 5L, 12L, 13L, 19L, 10L, 14L, 20L, 19L, 20L, 16L, 22L, 16L, 24L,
> 16L, 20L, 20L, 13L, 9L, 11L, 8L, 13L, 16L, 10L, 13L, 11L, 15L,
> 6L, 6L, 5L, 7L, 3L, 7L, 4L, 7L, 6L, 5L, 4L, 7L, 10L, 5L, 7L,
> 1L, 6L, 10L, 5L, 8L, 8L, 10L, 6L, 6L, 11L, 8L, 7L, 10L, 12L,
> 11L, 14L, 17L, 20L, 29L, 21L, 24L, 25L, 32L, 26L, 29L, 18L, 22L,
> 19L, 16L, 17L, 25L, 16L, 24L, 21L, 16L, 25L, 16L, 23L, 23L, 16L,
> 14L, 18L, 12L, 17L, 16L, 9L, 12L, 5L, 11L, 9L, 8L, 13L, 10L,
> 6L, 6L, 10L, 14L, 12L, 7L, 13L, 10L, 14L, 13L, 4L, 16L, 19L,
> 16L, 15L, 30L, 26L, 29L, 31L, 22L, 26L, 35L, 35L, 30L, 21L, 25L,
> 31L, 20L, 21L, 23L, 27L, 21L, 24L, 16L, 28L, 11L, 19L, 16L, 13L,
> 14L, 13L, 19L, 15L, 15L, 22L, 14L, 24L, 16L, 16L, 12L, 12L, 14L,
> 14L, 12L, 16L, 8L, 10L, 15L, 16L, 11L, 16L, 9L, 15L, 12L, 15L,
> 6L, 15L, 19L, 19L, 20L, 19L, 21L, 20L, 23L, 21L, 15L, 15L, 24L,
> 13L, 9L, 11L, 10L, 11L, 13L, 15L, 9L, 17L, 22L, 16L, 16L, 13L,
> 15L, 15L, 13L, 11L, 11L, 15L, 10L, 12L, 14L, 6L, 11L, 9L, 12L,
> 4L, 12L, 7L, 9L, 7L, 15L, 13L, 12L, 8L, 5L, 16L, 13L, 13L, 15L,
> 16L, 16L, 13L, 21L, 15L, 18L, 22L, 12L, 16L, 25L, 14L, 17L, 12L,
> 10L)), .Names = c("Date", "Transits"), class = "data.frame", row.names =
> c(NA,
> -731L))
>
>
> This is the result I get from the forecast:
>
> dput(Forecasts):
>
> structure(list(Point.Forecast = c(19.4253367238618, 12.2907914272766,
> 12.9624076300088, 18.0807466065309, 15.9843908802223, 16.5321579531827,
> 16.7184964071333, 10.1201838392972, 20.7203714449961, 7.45002607776652,
> 14.9836817432811, 13.3820472411712), Lo.80 = c(13.9434152149432,
> 6.74027066336727, 7.25612824519892, 12.2923074967212, 10.0690364921587,
> 10.501665758874, 10.5705243712663, 3.85957289110304, 14.3484486381226,
> 0.968987377892339, 8.39518758108775, 6.6878669395083), Hi.80 =
> c(24.9072582327803,
> 17.841312191186, 18.6686870148187, 23.8691857163406, 21.8997452682858,
> 22.5626501474914, 22.8664684430002, 16.3807947874913, 27.0922942518695,
> 13.9310647776407, 21.5721759054744, 20.0762275428341), Lo.95 =
> c(11.0414612619408,
> 3.80200245835122, 4.23540640692652, 9.2280929272317, 6.93763703269479,
> 7.30931602651216, 7.31598456740248, 0.545405648875148, 10.975356457297,
> -2.4618672675205, 4.90744944999539, 3.14418194567588), Hi.95 =
> c(27.8092121857828,
> 20.779580396202, 21.6894088530911, 26.9334002858301, 25.0311447277497,
> 25.7549998798532, 26.121008246864, 19.6949620297192, 30.4653864326951,
> 17.3619194230535, 25.0599140365668, 23.6199125366665)), .Names =
> c("Point.Forecast",
> "Lo.80", "Hi.80", "Lo.95", "Hi.95"), row.names = c("2016.019",
> "2016.038", "2016.058", "2016.077", "2016.096", "2016.115", "2016.135",
> "2016.154", "2016.173", "2016.192", "2016.212", "2016.231"), class =
> "data.frame")
>
> Thank you beforehand for your valuable support,
>
> Best regards,
>
> Paul
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Odd dates generated in Forecasts

PaulJr
Thank you very much David. As a matter of fact, I solved it by doing the
following:

MyTimeSeriesObj <- ts(MyData, freq=365.25/7,
start=decimal_date(mdy("01-04-2003")))

After doing that adjustment, my forecasts dates started from 2017 on.

Cheers,

Paul

2017-12-06 12:03 GMT-05:00 David Winsemius <[hidden email]>:

>
> > On Dec 6, 2017, at 5:07 AM, Paul Bernal <[hidden email]> wrote:
> >
> > Dear friends,
> >
> > I have a weekly time series which starts on Jan 4th, 2003 and ends on
> > december 31st, 2016.
> >
> > I set up my ts object as follows:
> >
> > MyTseries <- ts(mydataset, start=2003, end=2016, frequency=52)
> >
> > MyModel <- auto.arima(MyTseries, d=1, D=1)
> >
> > MyModelForecast <- forecast (MyModel, h=12)
> >
> > Since my last observation was on december 31st, 2016 I expected my
> forecast
> > date to start on 2017, but instead it returned odd dates.
> >
> > This is my dataset
> >
> > dput(dataset):
> >
> > structure(list(Date = structure(c(8L, 22L, 36L, 50L, 64L, 78L,
> > 92L, 106L, 120L, 134L, 148L, 162L, 176L, 190L, 204L, 218L, 232L,
> > 246L, 260L, 274L, 288L, 302L, 316L, 330L, 344L, 358L, 372L, 386L,
> > 400L, 414L, 428L, 442L, 456L, 470L, 484L, 498L, 512L, 526L, 540L,
> > 554L, 568L, 582L, 596L, 610L, 624L, 638L, 652L, 666L, 680L, 694L,
> > 708L, 722L, 5L, 19L, 33L, 47L, 61L, 75L, 89L, 103L, 117L, 130L,
> > 144L, 158L, 172L, 186L, 200L, 214L, 228L, 242L, 256L, 270L, 284L,
> > 298L, 312L, 326L, 340L, 354L, 368L, 382L, 396L, 410L, 424L, 438L,
> > 452L, 466L, 480L, 494L, 508L, 522L, 536L, 550L, 564L, 578L, 592L,
> > 606L, 620L, 634L, 648L, 662L, 676L, 690L, 704L, 718L, 1L, 15L,
> > 29L, 43L, 57L, 71L, 85L, 99L, 113L, 127L, 141L, 155L, 169L, 183L,
> > 197L, 211L, 225L, 239L, 253L, 267L, 281L, 295L, 309L, 323L, 337L,
> > 351L, 365L, 379L, 393L, 407L, 421L, 435L, 449L, 463L, 477L, 491L,
> > 505L, 519L, 533L, 547L, 561L, 575L, 589L, 603L, 617L, 631L, 645L,
> > 659L, 673L, 687L, 701L, 715L, 729L, 13L, 27L, 41L, 55L, 69L,
> > 83L, 97L, 111L, 126L, 140L, 154L, 168L, 182L, 196L, 210L, 224L,
> > 238L, 252L, 266L, 280L, 294L, 308L, 322L, 336L, 350L, 364L, 378L,
> > 392L, 406L, 420L, 434L, 448L, 462L, 476L, 490L, 504L, 518L, 532L,
> > 546L, 560L, 574L, 588L, 602L, 616L, 630L, 644L, 658L, 672L, 686L,
> > 700L, 714L, 728L, 12L, 26L, 40L, 54L, 68L, 82L, 96L, 110L, 124L,
> > 138L, 152L, 166L, 180L, 194L, 208L, 222L, 236L, 250L, 264L, 278L,
> > 292L, 306L, 320L, 334L, 348L, 362L, 376L, 390L, 404L, 418L, 432L,
> > 446L, 460L, 474L, 488L, 502L, 516L, 530L, 544L, 558L, 572L, 586L,
> > 600L, 614L, 628L, 642L, 656L, 670L, 684L, 698L, 712L, 726L, 10L,
> > 24L, 38L, 52L, 66L, 80L, 94L, 108L, 121L, 135L, 149L, 163L, 177L,
> > 191L, 205L, 219L, 233L, 247L, 261L, 275L, 289L, 303L, 317L, 331L,
> > 345L, 359L, 373L, 387L, 401L, 415L, 429L, 443L, 457L, 471L, 485L,
> > 499L, 513L, 527L, 541L, 555L, 569L, 583L, 597L, 611L, 625L, 639L,
> > 653L, 667L, 681L, 695L, 709L, 723L, 6L, 20L, 34L, 48L, 62L, 76L,
> > 90L, 104L, 118L, 132L, 146L, 160L, 174L, 188L, 202L, 216L, 230L,
> > 244L, 258L, 272L, 286L, 300L, 314L, 328L, 342L, 356L, 370L, 384L,
> > 398L, 412L, 426L, 440L, 454L, 468L, 482L, 496L, 510L, 524L, 538L,
> > 552L, 566L, 580L, 594L, 608L, 622L, 636L, 650L, 664L, 678L, 692L,
> > 706L, 720L, 3L, 17L, 31L, 45L, 59L, 73L, 87L, 101L, 115L, 131L,
> > 145L, 159L, 173L, 187L, 201L, 215L, 229L, 243L, 257L, 271L, 285L,
> > 299L, 313L, 327L, 341L, 355L, 369L, 383L, 397L, 411L, 425L, 439L,
> > 453L, 467L, 481L, 495L, 509L, 523L, 537L, 551L, 565L, 579L, 593L,
> > 607L, 621L, 635L, 649L, 663L, 677L, 691L, 705L, 719L, 2L, 16L,
> > 30L, 44L, 58L, 72L, 86L, 100L, 114L, 128L, 142L, 156L, 170L,
> > 184L, 198L, 212L, 226L, 240L, 254L, 268L, 282L, 296L, 310L, 324L,
> > 338L, 352L, 366L, 380L, 394L, 408L, 422L, 436L, 450L, 464L, 478L,
> > 492L, 506L, 520L, 534L, 548L, 562L, 576L, 590L, 604L, 618L, 632L,
> > 646L, 660L, 674L, 688L, 702L, 716L, 730L, 14L, 28L, 42L, 56L,
> > 70L, 84L, 98L, 112L, 125L, 139L, 153L, 167L, 181L, 195L, 209L,
> > 223L, 237L, 251L, 265L, 279L, 293L, 307L, 321L, 335L, 349L, 363L,
> > 377L, 391L, 405L, 419L, 433L, 447L, 461L, 475L, 489L, 503L, 517L,
> > 531L, 545L, 559L, 573L, 587L, 601L, 615L, 629L, 643L, 657L, 671L,
> > 685L, 699L, 713L, 727L, 11L, 25L, 39L, 53L, 67L, 81L, 95L, 109L,
> > 123L, 137L, 151L, 165L, 179L, 193L, 207L, 221L, 235L, 249L, 263L,
> > 277L, 291L, 305L, 319L, 333L, 347L, 361L, 375L, 389L, 403L, 417L,
> > 431L, 445L, 459L, 473L, 487L, 501L, 515L, 529L, 543L, 557L, 571L,
> > 585L, 599L, 613L, 627L, 641L, 655L, 669L, 683L, 697L, 711L, 725L,
> > 9L, 23L, 37L, 51L, 65L, 79L, 93L, 107L, 122L, 136L, 150L, 164L,
> > 178L, 192L, 206L, 220L, 234L, 248L, 262L, 276L, 290L, 304L, 318L,
> > 332L, 346L, 360L, 374L, 388L, 402L, 416L, 430L, 444L, 458L, 472L,
> > 486L, 500L, 514L, 528L, 542L, 556L, 570L, 584L, 598L, 612L, 626L,
> > 640L, 654L, 668L, 682L, 696L, 710L, 724L, 7L, 21L, 35L, 49L,
> > 63L, 77L, 91L, 105L, 119L, 133L, 147L, 161L, 175L, 189L, 203L,
> > 217L, 231L, 245L, 259L, 273L, 287L, 301L, 315L, 329L, 343L, 357L,
> > 371L, 385L, 399L, 413L, 427L, 441L, 455L, 469L, 483L, 497L, 511L,
> > 525L, 539L, 553L, 567L, 581L, 595L, 609L, 623L, 637L, 651L, 665L,
> > 679L, 693L, 707L, 721L, 4L, 18L, 32L, 46L, 60L, 74L, 88L, 102L,
> > 116L, 129L, 143L, 157L, 171L, 185L, 199L, 213L, 227L, 241L, 255L,
> > 269L, 283L, 297L, 311L, 325L, 339L, 353L, 367L, 381L, 395L, 409L,
> > 423L, 437L, 451L, 465L, 479L, 493L, 507L, 521L, 535L, 549L, 563L,
> > 577L, 591L, 605L, 619L, 633L, 647L, 661L, 675L, 689L, 703L, 717L,
> > 731L), .Label = c("01/01/05", "01/01/11", "01/02/10", "01/02/16",
> > "01/03/04", "01/03/09", "01/03/15", "01/04/03", "01/04/14", "01/05/08",
> > "01/05/13", "01/06/07", "01/07/06", "01/07/12", "01/08/05", "01/08/11",
> > "01/09/10", "01/09/16", "01/10/04", "01/10/09", "01/10/15", "01/11/03",
> > "01/11/14", "01/12/08", "01/12/13", "01/13/07", "01/14/06", "01/14/12",
> > "01/15/05", "01/15/11", "01/16/10", "01/16/16", "01/17/04", "01/17/09",
> > "01/17/15", "01/18/03", "01/18/14", "01/19/08", "01/19/13", "01/20/07",
> > "01/21/06", "01/21/12", "01/22/05", "01/22/11", "01/23/10", "01/23/16",
> > "01/24/04", "01/24/09", "01/24/15", "01/25/03", "01/25/14", "01/26/08",
> > "01/26/13", "01/27/07", "01/28/06", "01/28/12", "01/29/05", "01/29/11",
> > "01/30/10", "01/30/16", "01/31/04", "01/31/09", "01/31/15", "02/01/03",
> > "02/01/14", "02/02/08", "02/02/13", "02/03/07", "02/04/06", "02/04/12",
> > "02/05/05", "02/05/11", "02/06/10", "02/06/16", "02/07/04", "02/07/09",
> > "02/07/15", "02/08/03", "02/08/14", "02/09/08", "02/09/13", "02/10/07",
> > "02/11/06", "02/11/12", "02/12/05", "02/12/11", "02/13/10", "02/13/16",
> > "02/14/04", "02/14/09", "02/14/15", "02/15/03", "02/15/14", "02/16/08",
> > "02/16/13", "02/17/07", "02/18/06", "02/18/12", "02/19/05", "02/19/11",
> > "02/20/10", "02/20/16", "02/21/04", "02/21/09", "02/21/15", "02/22/03",
> > "02/22/14", "02/23/08", "02/23/13", "02/24/07", "02/25/06", "02/25/12",
> > "02/26/05", "02/26/11", "02/27/10", "02/27/16", "02/28/04", "02/28/09",
> > "02/28/15", "03/01/03", "03/01/08", "03/01/14", "03/02/13", "03/03/07",
> > "03/03/12", "03/04/06", "03/05/05", "03/05/11", "03/05/16", "03/06/04",
> > "03/06/10", "03/07/09", "03/07/15", "03/08/03", "03/08/08", "03/08/14",
> > "03/09/13", "03/10/07", "03/10/12", "03/11/06", "03/12/05", "03/12/11",
> > "03/12/16", "03/13/04", "03/13/10", "03/14/09", "03/14/15", "03/15/03",
> > "03/15/08", "03/15/14", "03/16/13", "03/17/07", "03/17/12", "03/18/06",
> > "03/19/05", "03/19/11", "03/19/16", "03/20/04", "03/20/10", "03/21/09",
> > "03/21/15", "03/22/03", "03/22/08", "03/22/14", "03/23/13", "03/24/07",
> > "03/24/12", "03/25/06", "03/26/05", "03/26/11", "03/26/16", "03/27/04",
> > "03/27/10", "03/28/09", "03/28/15", "03/29/03", "03/29/08", "03/29/14",
> > "03/30/13", "03/31/07", "03/31/12", "04/01/06", "04/02/05", "04/02/11",
> > "04/02/16", "04/03/04", "04/03/10", "04/04/09", "04/04/15", "04/05/03",
> > "04/05/08", "04/05/14", "04/06/13", "04/07/07", "04/07/12", "04/08/06",
> > "04/09/05", "04/09/11", "04/09/16", "04/10/04", "04/10/10", "04/11/09",
> > "04/11/15", "04/12/03", "04/12/08", "04/12/14", "04/13/13", "04/14/07",
> > "04/14/12", "04/15/06", "04/16/05", "04/16/11", "04/16/16", "04/17/04",
> > "04/17/10", "04/18/09", "04/18/15", "04/19/03", "04/19/08", "04/19/14",
> > "04/20/13", "04/21/07", "04/21/12", "04/22/06", "04/23/05", "04/23/11",
> > "04/23/16", "04/24/04", "04/24/10", "04/25/09", "04/25/15", "04/26/03",
> > "04/26/08", "04/26/14", "04/27/13", "04/28/07", "04/28/12", "04/29/06",
> > "04/30/05", "04/30/11", "04/30/16", "05/01/04", "05/01/10", "05/02/09",
> > "05/02/15", "05/03/03", "05/03/08", "05/03/14", "05/04/13", "05/05/07",
> > "05/05/12", "05/06/06", "05/07/05", "05/07/11", "05/07/16", "05/08/04",
> > "05/08/10", "05/09/09", "05/09/15", "05/10/03", "05/10/08", "05/10/14",
> > "05/11/13", "05/12/07", "05/12/12", "05/13/06", "05/14/05", "05/14/11",
> > "05/14/16", "05/15/04", "05/15/10", "05/16/09", "05/16/15", "05/17/03",
> > "05/17/08", "05/17/14", "05/18/13", "05/19/07", "05/19/12", "05/20/06",
> > "05/21/05", "05/21/11", "05/21/16", "05/22/04", "05/22/10", "05/23/09",
> > "05/23/15", "05/24/03", "05/24/08", "05/24/14", "05/25/13", "05/26/07",
> > "05/26/12", "05/27/06", "05/28/05", "05/28/11", "05/28/16", "05/29/04",
> > "05/29/10", "05/30/09", "05/30/15", "05/31/03", "05/31/08", "05/31/14",
> > "06/01/13", "06/02/07", "06/02/12", "06/03/06", "06/04/05", "06/04/11",
> > "06/04/16", "06/05/04", "06/05/10", "06/06/09", "06/06/15", "06/07/03",
> > "06/07/08", "06/07/14", "06/08/13", "06/09/07", "06/09/12", "06/10/06",
> > "06/11/05", "06/11/11", "06/11/16", "06/12/04", "06/12/10", "06/13/09",
> > "06/13/15", "06/14/03", "06/14/08", "06/14/14", "06/15/13", "06/16/07",
> > "06/16/12", "06/17/06", "06/18/05", "06/18/11", "06/18/16", "06/19/04",
> > "06/19/10", "06/20/09", "06/20/15", "06/21/03", "06/21/08", "06/21/14",
> > "06/22/13", "06/23/07", "06/23/12", "06/24/06", "06/25/05", "06/25/11",
> > "06/25/16", "06/26/04", "06/26/10", "06/27/09", "06/27/15", "06/28/03",
> > "06/28/08", "06/28/14", "06/29/13", "06/30/07", "06/30/12", "07/01/06",
> > "07/02/05", "07/02/11", "07/02/16", "07/03/04", "07/03/10", "07/04/09",
> > "07/04/15", "07/05/03", "07/05/08", "07/05/14", "07/06/13", "07/07/07",
> > "07/07/12", "07/08/06", "07/09/05", "07/09/11", "07/09/16", "07/10/04",
> > "07/10/10", "07/11/09", "07/11/15", "07/12/03", "07/12/08", "07/12/14",
> > "07/13/13", "07/14/07", "07/14/12", "07/15/06", "07/16/05", "07/16/11",
> > "07/16/16", "07/17/04", "07/17/10", "07/18/09", "07/18/15", "07/19/03",
> > "07/19/08", "07/19/14", "07/20/13", "07/21/07", "07/21/12", "07/22/06",
> > "07/23/05", "07/23/11", "07/23/16", "07/24/04", "07/24/10", "07/25/09",
> > "07/25/15", "07/26/03", "07/26/08", "07/26/14", "07/27/13", "07/28/07",
> > "07/28/12", "07/29/06", "07/30/05", "07/30/11", "07/30/16", "07/31/04",
> > "07/31/10", "08/01/09", "08/01/15", "08/02/03", "08/02/08", "08/02/14",
> > "08/03/13", "08/04/07", "08/04/12", "08/05/06", "08/06/05", "08/06/11",
> > "08/06/16", "08/07/04", "08/07/10", "08/08/09", "08/08/15", "08/09/03",
> > "08/09/08", "08/09/14", "08/10/13", "08/11/07", "08/11/12", "08/12/06",
> > "08/13/05", "08/13/11", "08/13/16", "08/14/04", "08/14/10", "08/15/09",
> > "08/15/15", "08/16/03", "08/16/08", "08/16/14", "08/17/13", "08/18/07",
> > "08/18/12", "08/19/06", "08/20/05", "08/20/11", "08/20/16", "08/21/04",
> > "08/21/10", "08/22/09", "08/22/15", "08/23/03", "08/23/08", "08/23/14",
> > "08/24/13", "08/25/07", "08/25/12", "08/26/06", "08/27/05", "08/27/11",
> > "08/27/16", "08/28/04", "08/28/10", "08/29/09", "08/29/15", "08/30/03",
> > "08/30/08", "08/30/14", "08/31/13", "09/01/07", "09/01/12", "09/02/06",
> > "09/03/05", "09/03/11", "09/03/16", "09/04/04", "09/04/10", "09/05/09",
> > "09/05/15", "09/06/03", "09/06/08", "09/06/14", "09/07/13", "09/08/07",
> > "09/08/12", "09/09/06", "09/10/05", "09/10/11", "09/10/16", "09/11/04",
> > "09/11/10", "09/12/09", "09/12/15", "09/13/03", "09/13/08", "09/13/14",
> > "09/14/13", "09/15/07", "09/15/12", "09/16/06", "09/17/05", "09/17/11",
> > "09/17/16", "09/18/04", "09/18/10", "09/19/09", "09/19/15", "09/20/03",
> > "09/20/08", "09/20/14", "09/21/13", "09/22/07", "09/22/12", "09/23/06",
> > "09/24/05", "09/24/11", "09/24/16", "09/25/04", "09/25/10", "09/26/09",
> > "09/26/15", "09/27/03", "09/27/08", "09/27/14", "09/28/13", "09/29/07",
> > "09/29/12", "09/30/06", "10/01/05", "10/01/11", "10/01/16", "10/02/04",
> > "10/02/10", "10/03/09", "10/03/15", "10/04/03", "10/04/08", "10/04/14",
> > "10/05/13", "10/06/07", "10/06/12", "10/07/06", "10/08/05", "10/08/11",
> > "10/08/16", "10/09/04", "10/09/10", "10/10/09", "10/10/15", "10/11/03",
> > "10/11/08", "10/11/14", "10/12/13", "10/13/07", "10/13/12", "10/14/06",
> > "10/15/05", "10/15/11", "10/15/16", "10/16/04", "10/16/10", "10/17/09",
> > "10/17/15", "10/18/03", "10/18/08", "10/18/14", "10/19/13", "10/20/07",
> > "10/20/12", "10/21/06", "10/22/05", "10/22/11", "10/22/16", "10/23/04",
> > "10/23/10", "10/24/09", "10/24/15", "10/25/03", "10/25/08", "10/25/14",
> > "10/26/13", "10/27/07", "10/27/12", "10/28/06", "10/29/05", "10/29/11",
> > "10/29/16", "10/30/04", "10/30/10", "10/31/09", "10/31/15", "11/01/03",
> > "11/01/08", "11/01/14", "11/02/13", "11/03/07", "11/03/12", "11/04/06",
> > "11/05/05", "11/05/11", "11/05/16", "11/06/04", "11/06/10", "11/07/09",
> > "11/07/15", "11/08/03", "11/08/08", "11/08/14", "11/09/13", "11/10/07",
> > "11/10/12", "11/11/06", "11/12/05", "11/12/11", "11/12/16", "11/13/04",
> > "11/13/10", "11/14/09", "11/14/15", "11/15/03", "11/15/08", "11/15/14",
> > "11/16/13", "11/17/07", "11/17/12", "11/18/06", "11/19/05", "11/19/11",
> > "11/19/16", "11/20/04", "11/20/10", "11/21/09", "11/21/15", "11/22/03",
> > "11/22/08", "11/22/14", "11/23/13", "11/24/07", "11/24/12", "11/25/06",
> > "11/26/05", "11/26/11", "11/26/16", "11/27/04", "11/27/10", "11/28/09",
> > "11/28/15", "11/29/03", "11/29/08", "11/29/14", "11/30/13", "12/01/07",
> > "12/01/12", "12/02/06", "12/03/05", "12/03/11", "12/03/16", "12/04/04",
> > "12/04/10", "12/05/09", "12/05/15", "12/06/03", "12/06/08", "12/06/14",
> > "12/07/13", "12/08/07", "12/08/12", "12/09/06", "12/10/05", "12/10/11",
> > "12/10/16", "12/11/04", "12/11/10", "12/12/09", "12/12/15", "12/13/03",
> > "12/13/08", "12/13/14", "12/14/13", "12/15/07", "12/15/12", "12/16/06",
> > "12/17/05", "12/17/11", "12/17/16", "12/18/04", "12/18/10", "12/19/09",
> > "12/19/15", "12/20/03", "12/20/08", "12/20/14", "12/21/13", "12/22/07",
> > "12/22/12", "12/23/06", "12/24/05", "12/24/11", "12/24/16", "12/25/04",
> > "12/25/10", "12/26/09", "12/26/15", "12/27/03", "12/27/08", "12/27/14",
> > "12/28/13", "12/29/07", "12/29/12", "12/30/06", "12/31/05", "12/31/11",
> > "12/31/16"), class = "factor"),
>
> Those are not R dates. Unless you convert to dates then they will have
> alpha sort order which is probably NOT what you expected.
>
> Perhaps:
>
> dat$fixed_dates <- as.Date( as.character(dat$Date), format="%m/%d/%y")
>
>
>
> --
> David
> > Transits = c(11L, 17L, 14L, 18L,
> > 12L, 14L, 21L, 14L, 16L, 10L, 11L, 10L, 6L, 8L, 12L, 11L, 8L,
> > 6L, 7L, 9L, 6L, 5L, 3L, 12L, 10L, 5L, 6L, 5L, 9L, 14L, 6L, 6L,
> > 5L, 6L, 7L, 6L, 5L, 6L, 4L, 14L, 10L, 7L, 9L, 8L, 9L, 12L, 12L,
> > 13L, 9L, 15L, 19L, 9L, 8L, 7L, 8L, 16L, 19L, 14L, 15L, 7L, 12L,
> > 16L, 15L, 10L, 17L, 7L, 5L, 6L, 10L, 4L, 5L, 5L, 9L, 5L, 2L,
> > 6L, 8L, 5L, 4L, 8L, 7L, 9L, 6L, 7L, 8L, 5L, 9L, 7L, 5L, 13L,
> > 11L, 15L, 9L, 11L, 17L, 17L, 10L, 14L, 20L, 18L, 8L, 17L, 7L,
> > 12L, 9L, 10L, 6L, 7L, 11L, 9L, 7L, 10L, 7L, 10L, 13L, 12L, 10L,
> > 8L, 11L, 10L, 9L, 10L, 8L, 9L, 6L, 9L, 7L, 6L, 6L, 11L, 10L,
> > 5L, 4L, 7L, 14L, 11L, 8L, 10L, 7L, 5L, 4L, 8L, 6L, 15L, 11L,
> > 14L, 16L, 18L, 20L, 14L, 18L, 14L, 13L, 16L, 17L, 9L, 11L, 16L,
> > 13L, 12L, 11L, 16L, 16L, 17L, 21L, 13L, 19L, 16L, 14L, 13L, 11L,
> > 8L, 8L, 19L, 9L, 11L, 10L, 17L, 12L, 10L, 11L, 13L, 12L, 11L,
> > 8L, 12L, 19L, 14L, 9L, 9L, 16L, 20L, 13L, 12L, 14L, 13L, 12L,
> > 18L, 13L, 12L, 19L, 16L, 16L, 17L, 16L, 20L, 20L, 13L, 14L, 13L,
> > 7L, 16L, 15L, 17L, 16L, 15L, 17L, 18L, 17L, 16L, 14L, 12L, 9L,
> > 9L, 6L, 14L, 8L, 17L, 9L, 12L, 11L, 8L, 11L, 10L, 13L, 7L, 4L,
> > 10L, 12L, 11L, 8L, 8L, 13L, 6L, 9L, 6L, 18L, 11L, 13L, 10L, 17L,
> > 14L, 10L, 14L, 11L, 15L, 19L, 17L, 15L, 18L, 14L, 12L, 20L, 12L,
> > 12L, 16L, 16L, 17L, 11L, 10L, 11L, 13L, 16L, 17L, 9L, 11L, 13L,
> > 7L, 7L, 7L, 10L, 9L, 5L, 12L, 8L, 8L, 10L, 10L, 12L, 9L, 8L,
> > 9L, 12L, 10L, 9L, 6L, 9L, 2L, 9L, 8L, 10L, 12L, 13L, 15L, 12L,
> > 13L, 12L, 17L, 18L, 14L, 21L, 15L, 19L, 15L, 11L, 18L, 20L, 18L,
> > 19L, 19L, 18L, 20L, 16L, 15L, 11L, 20L, 12L, 13L, 12L, 10L, 11L,
> > 12L, 14L, 9L, 7L, 11L, 12L, 14L, 11L, 11L, 9L, 20L, 9L, 11L,
> > 9L, 10L, 9L, 15L, 8L, 8L, 13L, 10L, 15L, 11L, 14L, 16L, 25L,
> > 20L, 23L, 31L, 29L, 21L, 20L, 16L, 25L, 20L, 16L, 20L, 21L, 19L,
> > 16L, 22L, 17L, 18L, 20L, 16L, 15L, 14L, 15L, 10L, 7L, 15L, 10L,
> > 5L, 14L, 7L, 16L, 11L, 12L, 8L, 8L, 8L, 9L, 9L, 9L, 14L, 5L,
> > 12L, 9L, 8L, 11L, 11L, 7L, 11L, 16L, 18L, 17L, 31L, 21L, 30L,
> > 21L, 29L, 26L, 22L, 14L, 26L, 19L, 20L, 10L, 15L, 22L, 15L, 21L,
> > 13L, 19L, 19L, 22L, 19L, 15L, 16L, 18L, 15L, 13L, 13L, 8L, 6L,
> > 9L, 9L, 11L, 10L, 7L, 7L, 8L, 11L, 7L, 7L, 10L, 6L, 8L, 9L, 5L,
> > 10L, 6L, 8L, 12L, 6L, 17L, 12L, 16L, 13L, 14L, 18L, 25L, 19L,
> > 19L, 24L, 14L, 18L, 20L, 18L, 16L, 17L, 12L, 21L, 20L, 18L, 15L,
> > 12L, 13L, 11L, 9L, 10L, 11L, 8L, 12L, 12L, 4L, 5L, 5L, 11L, 9L,
> > 10L, 7L, 3L, 13L, 6L, 10L, 9L, 9L, 10L, 10L, 8L, 10L, 6L, 12L,
> > 5L, 12L, 13L, 19L, 10L, 14L, 20L, 19L, 20L, 16L, 22L, 16L, 24L,
> > 16L, 20L, 20L, 13L, 9L, 11L, 8L, 13L, 16L, 10L, 13L, 11L, 15L,
> > 6L, 6L, 5L, 7L, 3L, 7L, 4L, 7L, 6L, 5L, 4L, 7L, 10L, 5L, 7L,
> > 1L, 6L, 10L, 5L, 8L, 8L, 10L, 6L, 6L, 11L, 8L, 7L, 10L, 12L,
> > 11L, 14L, 17L, 20L, 29L, 21L, 24L, 25L, 32L, 26L, 29L, 18L, 22L,
> > 19L, 16L, 17L, 25L, 16L, 24L, 21L, 16L, 25L, 16L, 23L, 23L, 16L,
> > 14L, 18L, 12L, 17L, 16L, 9L, 12L, 5L, 11L, 9L, 8L, 13L, 10L,
> > 6L, 6L, 10L, 14L, 12L, 7L, 13L, 10L, 14L, 13L, 4L, 16L, 19L,
> > 16L, 15L, 30L, 26L, 29L, 31L, 22L, 26L, 35L, 35L, 30L, 21L, 25L,
> > 31L, 20L, 21L, 23L, 27L, 21L, 24L, 16L, 28L, 11L, 19L, 16L, 13L,
> > 14L, 13L, 19L, 15L, 15L, 22L, 14L, 24L, 16L, 16L, 12L, 12L, 14L,
> > 14L, 12L, 16L, 8L, 10L, 15L, 16L, 11L, 16L, 9L, 15L, 12L, 15L,
> > 6L, 15L, 19L, 19L, 20L, 19L, 21L, 20L, 23L, 21L, 15L, 15L, 24L,
> > 13L, 9L, 11L, 10L, 11L, 13L, 15L, 9L, 17L, 22L, 16L, 16L, 13L,
> > 15L, 15L, 13L, 11L, 11L, 15L, 10L, 12L, 14L, 6L, 11L, 9L, 12L,
> > 4L, 12L, 7L, 9L, 7L, 15L, 13L, 12L, 8L, 5L, 16L, 13L, 13L, 15L,
> > 16L, 16L, 13L, 21L, 15L, 18L, 22L, 12L, 16L, 25L, 14L, 17L, 12L,
> > 10L)), .Names = c("Date", "Transits"), class = "data.frame", row.names =
> > c(NA,
> > -731L))
> >
> >
> > This is the result I get from the forecast:
> >
> > dput(Forecasts):
> >
> > structure(list(Point.Forecast = c(19.4253367238618, 12.2907914272766,
> > 12.9624076300088, 18.0807466065309, 15.9843908802223, 16.5321579531827,
> > 16.7184964071333, 10.1201838392972, 20.7203714449961, 7.45002607776652,
> > 14.9836817432811, 13.3820472411712), Lo.80 = c(13.9434152149432,
> > 6.74027066336727, 7.25612824519892, 12.2923074967212, 10.0690364921587,
> > 10.501665758874, 10.5705243712663, 3.85957289110304, 14.3484486381226,
> > 0.968987377892339, 8.39518758108775, 6.6878669395083), Hi.80 =
> > c(24.9072582327803,
> > 17.841312191186, 18.6686870148187, 23.8691857163406, 21.8997452682858,
> > 22.5626501474914, 22.8664684430002, 16.3807947874913, 27.0922942518695,
> > 13.9310647776407, 21.5721759054744, 20.0762275428341), Lo.95 =
> > c(11.0414612619408,
> > 3.80200245835122, 4.23540640692652, 9.2280929272317, 6.93763703269479,
> > 7.30931602651216, 7.31598456740248, 0.545405648875148, 10.975356457297,
> > -2.4618672675205, 4.90744944999539, 3.14418194567588), Hi.95 =
> > c(27.8092121857828,
> > 20.779580396202, 21.6894088530911, 26.9334002858301, 25.0311447277497,
> > 25.7549998798532, 26.121008246864, 19.6949620297192, 30.4653864326951,
> > 17.3619194230535, 25.0599140365668, 23.6199125366665)), .Names =
> > c("Point.Forecast",
> > "Lo.80", "Hi.80", "Lo.95", "Hi.95"), row.names = c("2016.019",
> > "2016.038", "2016.058", "2016.077", "2016.096", "2016.115", "2016.135",
> > "2016.154", "2016.173", "2016.192", "2016.212", "2016.231"), class =
> > "data.frame")
> >
> > Thank you beforehand for your valuable support,
> >
> > Best regards,
> >
> > Paul
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> David Winsemius
> Alameda, CA, USA
>
> 'Any technology distinguishable from magic is insufficiently advanced.'
>  -Gehm's Corollary to Clarke's Third Law
>
>
>
>
>
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Odd dates generated in Forecasts

David Winsemius

> On Dec 6, 2017, at 11:09 AM, Paul Bernal <[hidden email]> wrote:
>
> Thank you very much David. As a matter of fact, I solved it by doing the following:
>
> MyTimeSeriesObj <- ts(MyData, freq=365.25/7, start=decimal_date(mdy("01-04-2003")))
>
> After doing that adjustment, my forecasts dates started from 2017 on.

Not clear what MyData consisted of. If it was the factor variable in the `dataset` object in your earlier communication, then you gave the `ts`  function garbage. The fact that it was labeled to your liking would not create a palatable result.

--
David.

>
> Cheers,
>
> Paul
>
> 2017-12-06 12:03 GMT-05:00 David Winsemius <[hidden email]>:
>
> > On Dec 6, 2017, at 5:07 AM, Paul Bernal <[hidden email]> wrote:
> >
> > Dear friends,
> >
> > I have a weekly time series which starts on Jan 4th, 2003 and ends on
> > december 31st, 2016.
> >
> > I set up my ts object as follows:
> >
> > MyTseries <- ts(mydataset, start=2003, end=2016, frequency=52)
> >
> > MyModel <- auto.arima(MyTseries, d=1, D=1)
> >
> > MyModelForecast <- forecast (MyModel, h=12)
> >
> > Since my last observation was on december 31st, 2016 I expected my forecast
> > date to start on 2017, but instead it returned odd dates.
> >
> > This is my dataset
> >
> > dput(dataset):
> >
> > structure(list(Date = structure(c(8L, 22L, 36L, 50L, 64L, 78L,
> > 92L, 106L, 120L, 134L, 148L, 162L, 176L, 190L, 204L, 218L, 232L,
> > 246L, 260L, 274L, 288L, 302L, 316L, 330L, 344L, 358L, 372L, 386L,
> > 400L, 414L, 428L, 442L, 456L, 470L, 484L, 498L, 512L, 526L, 540L,
> > 554L, 568L, 582L, 596L, 610L, 624L, 638L, 652L, 666L, 680L, 694L,
> > 708L, 722L, 5L, 19L, 33L, 47L, 61L, 75L, 89L, 103L, 117L, 130L,
> > 144L, 158L, 172L, 186L, 200L, 214L, 228L, 242L, 256L, 270L, 284L,
> > 298L, 312L, 326L, 340L, 354L, 368L, 382L, 396L, 410L, 424L, 438L,
> > 452L, 466L, 480L, 494L, 508L, 522L, 536L, 550L, 564L, 578L, 592L,
> > 606L, 620L, 634L, 648L, 662L, 676L, 690L, 704L, 718L, 1L, 15L,
> > 29L, 43L, 57L, 71L, 85L, 99L, 113L, 127L, 141L, 155L, 169L, 183L,
> > 197L, 211L, 225L, 239L, 253L, 267L, 281L, 295L, 309L, 323L, 337L,
> > 351L, 365L, 379L, 393L, 407L, 421L, 435L, 449L, 463L, 477L, 491L,
> > 505L, 519L, 533L, 547L, 561L, 575L, 589L, 603L, 617L, 631L, 645L,
> > 659L, 673L, 687L, 701L, 715L, 729L, 13L, 27L, 41L, 55L, 69L,
> > 83L, 97L, 111L, 126L, 140L, 154L, 168L, 182L, 196L, 210L, 224L,
> > 238L, 252L, 266L, 280L, 294L, 308L, 322L, 336L, 350L, 364L, 378L,
> > 392L, 406L, 420L, 434L, 448L, 462L, 476L, 490L, 504L, 518L, 532L,
> > 546L, 560L, 574L, 588L, 602L, 616L, 630L, 644L, 658L, 672L, 686L,
> > 700L, 714L, 728L, 12L, 26L, 40L, 54L, 68L, 82L, 96L, 110L, 124L,
> > 138L, 152L, 166L, 180L, 194L, 208L, 222L, 236L, 250L, 264L, 278L,
> > 292L, 306L, 320L, 334L, 348L, 362L, 376L, 390L, 404L, 418L, 432L,
> > 446L, 460L, 474L, 488L, 502L, 516L, 530L, 544L, 558L, 572L, 586L,
> > 600L, 614L, 628L, 642L, 656L, 670L, 684L, 698L, 712L, 726L, 10L,
> > 24L, 38L, 52L, 66L, 80L, 94L, 108L, 121L, 135L, 149L, 163L, 177L,
> > 191L, 205L, 219L, 233L, 247L, 261L, 275L, 289L, 303L, 317L, 331L,
> > 345L, 359L, 373L, 387L, 401L, 415L, 429L, 443L, 457L, 471L, 485L,
> > 499L, 513L, 527L, 541L, 555L, 569L, 583L, 597L, 611L, 625L, 639L,
> > 653L, 667L, 681L, 695L, 709L, 723L, 6L, 20L, 34L, 48L, 62L, 76L,
> > 90L, 104L, 118L, 132L, 146L, 160L, 174L, 188L, 202L, 216L, 230L,
> > 244L, 258L, 272L, 286L, 300L, 314L, 328L, 342L, 356L, 370L, 384L,
> > 398L, 412L, 426L, 440L, 454L, 468L, 482L, 496L, 510L, 524L, 538L,
> > 552L, 566L, 580L, 594L, 608L, 622L, 636L, 650L, 664L, 678L, 692L,
> > 706L, 720L, 3L, 17L, 31L, 45L, 59L, 73L, 87L, 101L, 115L, 131L,
> > 145L, 159L, 173L, 187L, 201L, 215L, 229L, 243L, 257L, 271L, 285L,
> > 299L, 313L, 327L, 341L, 355L, 369L, 383L, 397L, 411L, 425L, 439L,
> > 453L, 467L, 481L, 495L, 509L, 523L, 537L, 551L, 565L, 579L, 593L,
> > 607L, 621L, 635L, 649L, 663L, 677L, 691L, 705L, 719L, 2L, 16L,
> > 30L, 44L, 58L, 72L, 86L, 100L, 114L, 128L, 142L, 156L, 170L,
> > 184L, 198L, 212L, 226L, 240L, 254L, 268L, 282L, 296L, 310L, 324L,
> > 338L, 352L, 366L, 380L, 394L, 408L, 422L, 436L, 450L, 464L, 478L,
> > 492L, 506L, 520L, 534L, 548L, 562L, 576L, 590L, 604L, 618L, 632L,
> > 646L, 660L, 674L, 688L, 702L, 716L, 730L, 14L, 28L, 42L, 56L,
> > 70L, 84L, 98L, 112L, 125L, 139L, 153L, 167L, 181L, 195L, 209L,
> > 223L, 237L, 251L, 265L, 279L, 293L, 307L, 321L, 335L, 349L, 363L,
> > 377L, 391L, 405L, 419L, 433L, 447L, 461L, 475L, 489L, 503L, 517L,
> > 531L, 545L, 559L, 573L, 587L, 601L, 615L, 629L, 643L, 657L, 671L,
> > 685L, 699L, 713L, 727L, 11L, 25L, 39L, 53L, 67L, 81L, 95L, 109L,
> > 123L, 137L, 151L, 165L, 179L, 193L, 207L, 221L, 235L, 249L, 263L,
> > 277L, 291L, 305L, 319L, 333L, 347L, 361L, 375L, 389L, 403L, 417L,
> > 431L, 445L, 459L, 473L, 487L, 501L, 515L, 529L, 543L, 557L, 571L,
> > 585L, 599L, 613L, 627L, 641L, 655L, 669L, 683L, 697L, 711L, 725L,
> > 9L, 23L, 37L, 51L, 65L, 79L, 93L, 107L, 122L, 136L, 150L, 164L,
> > 178L, 192L, 206L, 220L, 234L, 248L, 262L, 276L, 290L, 304L, 318L,
> > 332L, 346L, 360L, 374L, 388L, 402L, 416L, 430L, 444L, 458L, 472L,
> > 486L, 500L, 514L, 528L, 542L, 556L, 570L, 584L, 598L, 612L, 626L,
> > 640L, 654L, 668L, 682L, 696L, 710L, 724L, 7L, 21L, 35L, 49L,
> > 63L, 77L, 91L, 105L, 119L, 133L, 147L, 161L, 175L, 189L, 203L,
> > 217L, 231L, 245L, 259L, 273L, 287L, 301L, 315L, 329L, 343L, 357L,
> > 371L, 385L, 399L, 413L, 427L, 441L, 455L, 469L, 483L, 497L, 511L,
> > 525L, 539L, 553L, 567L, 581L, 595L, 609L, 623L, 637L, 651L, 665L,
> > 679L, 693L, 707L, 721L, 4L, 18L, 32L, 46L, 60L, 74L, 88L, 102L,
> > 116L, 129L, 143L, 157L, 171L, 185L, 199L, 213L, 227L, 241L, 255L,
> > 269L, 283L, 297L, 311L, 325L, 339L, 353L, 367L, 381L, 395L, 409L,
> > 423L, 437L, 451L, 465L, 479L, 493L, 507L, 521L, 535L, 549L, 563L,
> > 577L, 591L, 605L, 619L, 633L, 647L, 661L, 675L, 689L, 703L, 717L,
> > 731L), .Label = c("01/01/05", "01/01/11", "01/02/10", "01/02/16",
> > "01/03/04", "01/03/09", "01/03/15", "01/04/03", "01/04/14", "01/05/08",
> > "01/05/13", "01/06/07", "01/07/06", "01/07/12", "01/08/05", "01/08/11",
> > "01/09/10", "01/09/16", "01/10/04", "01/10/09", "01/10/15", "01/11/03",
> > "01/11/14", "01/12/08", "01/12/13", "01/13/07", "01/14/06", "01/14/12",
> > "01/15/05", "01/15/11", "01/16/10", "01/16/16", "01/17/04", "01/17/09",
> > "01/17/15", "01/18/03", "01/18/14", "01/19/08", "01/19/13", "01/20/07",
> > "01/21/06", "01/21/12", "01/22/05", "01/22/11", "01/23/10", "01/23/16",
> > "01/24/04", "01/24/09", "01/24/15", "01/25/03", "01/25/14", "01/26/08",
> > "01/26/13", "01/27/07", "01/28/06", "01/28/12", "01/29/05", "01/29/11",
> > "01/30/10", "01/30/16", "01/31/04", "01/31/09", "01/31/15", "02/01/03",
> > "02/01/14", "02/02/08", "02/02/13", "02/03/07", "02/04/06", "02/04/12",
> > "02/05/05", "02/05/11", "02/06/10", "02/06/16", "02/07/04", "02/07/09",
> > "02/07/15", "02/08/03", "02/08/14", "02/09/08", "02/09/13", "02/10/07",
> > "02/11/06", "02/11/12", "02/12/05", "02/12/11", "02/13/10", "02/13/16",
> > "02/14/04", "02/14/09", "02/14/15", "02/15/03", "02/15/14", "02/16/08",
> > "02/16/13", "02/17/07", "02/18/06", "02/18/12", "02/19/05", "02/19/11",
> > "02/20/10", "02/20/16", "02/21/04", "02/21/09", "02/21/15", "02/22/03",
> > "02/22/14", "02/23/08", "02/23/13", "02/24/07", "02/25/06", "02/25/12",
> > "02/26/05", "02/26/11", "02/27/10", "02/27/16", "02/28/04", "02/28/09",
> > "02/28/15", "03/01/03", "03/01/08", "03/01/14", "03/02/13", "03/03/07",
> > "03/03/12", "03/04/06", "03/05/05", "03/05/11", "03/05/16", "03/06/04",
> > "03/06/10", "03/07/09", "03/07/15", "03/08/03", "03/08/08", "03/08/14",
> > "03/09/13", "03/10/07", "03/10/12", "03/11/06", "03/12/05", "03/12/11",
> > "03/12/16", "03/13/04", "03/13/10", "03/14/09", "03/14/15", "03/15/03",
> > "03/15/08", "03/15/14", "03/16/13", "03/17/07", "03/17/12", "03/18/06",
> > "03/19/05", "03/19/11", "03/19/16", "03/20/04", "03/20/10", "03/21/09",
> > "03/21/15", "03/22/03", "03/22/08", "03/22/14", "03/23/13", "03/24/07",
> > "03/24/12", "03/25/06", "03/26/05", "03/26/11", "03/26/16", "03/27/04",
> > "03/27/10", "03/28/09", "03/28/15", "03/29/03", "03/29/08", "03/29/14",
> > "03/30/13", "03/31/07", "03/31/12", "04/01/06", "04/02/05", "04/02/11",
> > "04/02/16", "04/03/04", "04/03/10", "04/04/09", "04/04/15", "04/05/03",
> > "04/05/08", "04/05/14", "04/06/13", "04/07/07", "04/07/12", "04/08/06",
> > "04/09/05", "04/09/11", "04/09/16", "04/10/04", "04/10/10", "04/11/09",
> > "04/11/15", "04/12/03", "04/12/08", "04/12/14", "04/13/13", "04/14/07",
> > "04/14/12", "04/15/06", "04/16/05", "04/16/11", "04/16/16", "04/17/04",
> > "04/17/10", "04/18/09", "04/18/15", "04/19/03", "04/19/08", "04/19/14",
> > "04/20/13", "04/21/07", "04/21/12", "04/22/06", "04/23/05", "04/23/11",
> > "04/23/16", "04/24/04", "04/24/10", "04/25/09", "04/25/15", "04/26/03",
> > "04/26/08", "04/26/14", "04/27/13", "04/28/07", "04/28/12", "04/29/06",
> > "04/30/05", "04/30/11", "04/30/16", "05/01/04", "05/01/10", "05/02/09",
> > "05/02/15", "05/03/03", "05/03/08", "05/03/14", "05/04/13", "05/05/07",
> > "05/05/12", "05/06/06", "05/07/05", "05/07/11", "05/07/16", "05/08/04",
> > "05/08/10", "05/09/09", "05/09/15", "05/10/03", "05/10/08", "05/10/14",
> > "05/11/13", "05/12/07", "05/12/12", "05/13/06", "05/14/05", "05/14/11",
> > "05/14/16", "05/15/04", "05/15/10", "05/16/09", "05/16/15", "05/17/03",
> > "05/17/08", "05/17/14", "05/18/13", "05/19/07", "05/19/12", "05/20/06",
> > "05/21/05", "05/21/11", "05/21/16", "05/22/04", "05/22/10", "05/23/09",
> > "05/23/15", "05/24/03", "05/24/08", "05/24/14", "05/25/13", "05/26/07",
> > "05/26/12", "05/27/06", "05/28/05", "05/28/11", "05/28/16", "05/29/04",
> > "05/29/10", "05/30/09", "05/30/15", "05/31/03", "05/31/08", "05/31/14",
> > "06/01/13", "06/02/07", "06/02/12", "06/03/06", "06/04/05", "06/04/11",
> > "06/04/16", "06/05/04", "06/05/10", "06/06/09", "06/06/15", "06/07/03",
> > "06/07/08", "06/07/14", "06/08/13", "06/09/07", "06/09/12", "06/10/06",
> > "06/11/05", "06/11/11", "06/11/16", "06/12/04", "06/12/10", "06/13/09",
> > "06/13/15", "06/14/03", "06/14/08", "06/14/14", "06/15/13", "06/16/07",
> > "06/16/12", "06/17/06", "06/18/05", "06/18/11", "06/18/16", "06/19/04",
> > "06/19/10", "06/20/09", "06/20/15", "06/21/03", "06/21/08", "06/21/14",
> > "06/22/13", "06/23/07", "06/23/12", "06/24/06", "06/25/05", "06/25/11",
> > "06/25/16", "06/26/04", "06/26/10", "06/27/09", "06/27/15", "06/28/03",
> > "06/28/08", "06/28/14", "06/29/13", "06/30/07", "06/30/12", "07/01/06",
> > "07/02/05", "07/02/11", "07/02/16", "07/03/04", "07/03/10", "07/04/09",
> > "07/04/15", "07/05/03", "07/05/08", "07/05/14", "07/06/13", "07/07/07",
> > "07/07/12", "07/08/06", "07/09/05", "07/09/11", "07/09/16", "07/10/04",
> > "07/10/10", "07/11/09", "07/11/15", "07/12/03", "07/12/08", "07/12/14",
> > "07/13/13", "07/14/07", "07/14/12", "07/15/06", "07/16/05", "07/16/11",
> > "07/16/16", "07/17/04", "07/17/10", "07/18/09", "07/18/15", "07/19/03",
> > "07/19/08", "07/19/14", "07/20/13", "07/21/07", "07/21/12", "07/22/06",
> > "07/23/05", "07/23/11", "07/23/16", "07/24/04", "07/24/10", "07/25/09",
> > "07/25/15", "07/26/03", "07/26/08", "07/26/14", "07/27/13", "07/28/07",
> > "07/28/12", "07/29/06", "07/30/05", "07/30/11", "07/30/16", "07/31/04",
> > "07/31/10", "08/01/09", "08/01/15", "08/02/03", "08/02/08", "08/02/14",
> > "08/03/13", "08/04/07", "08/04/12", "08/05/06", "08/06/05", "08/06/11",
> > "08/06/16", "08/07/04", "08/07/10", "08/08/09", "08/08/15", "08/09/03",
> > "08/09/08", "08/09/14", "08/10/13", "08/11/07", "08/11/12", "08/12/06",
> > "08/13/05", "08/13/11", "08/13/16", "08/14/04", "08/14/10", "08/15/09",
> > "08/15/15", "08/16/03", "08/16/08", "08/16/14", "08/17/13", "08/18/07",
> > "08/18/12", "08/19/06", "08/20/05", "08/20/11", "08/20/16", "08/21/04",
> > "08/21/10", "08/22/09", "08/22/15", "08/23/03", "08/23/08", "08/23/14",
> > "08/24/13", "08/25/07", "08/25/12", "08/26/06", "08/27/05", "08/27/11",
> > "08/27/16", "08/28/04", "08/28/10", "08/29/09", "08/29/15", "08/30/03",
> > "08/30/08", "08/30/14", "08/31/13", "09/01/07", "09/01/12", "09/02/06",
> > "09/03/05", "09/03/11", "09/03/16", "09/04/04", "09/04/10", "09/05/09",
> > "09/05/15", "09/06/03", "09/06/08", "09/06/14", "09/07/13", "09/08/07",
> > "09/08/12", "09/09/06", "09/10/05", "09/10/11", "09/10/16", "09/11/04",
> > "09/11/10", "09/12/09", "09/12/15", "09/13/03", "09/13/08", "09/13/14",
> > "09/14/13", "09/15/07", "09/15/12", "09/16/06", "09/17/05", "09/17/11",
> > "09/17/16", "09/18/04", "09/18/10", "09/19/09", "09/19/15", "09/20/03",
> > "09/20/08", "09/20/14", "09/21/13", "09/22/07", "09/22/12", "09/23/06",
> > "09/24/05", "09/24/11", "09/24/16", "09/25/04", "09/25/10", "09/26/09",
> > "09/26/15", "09/27/03", "09/27/08", "09/27/14", "09/28/13", "09/29/07",
> > "09/29/12", "09/30/06", "10/01/05", "10/01/11", "10/01/16", "10/02/04",
> > "10/02/10", "10/03/09", "10/03/15", "10/04/03", "10/04/08", "10/04/14",
> > "10/05/13", "10/06/07", "10/06/12", "10/07/06", "10/08/05", "10/08/11",
> > "10/08/16", "10/09/04", "10/09/10", "10/10/09", "10/10/15", "10/11/03",
> > "10/11/08", "10/11/14", "10/12/13", "10/13/07", "10/13/12", "10/14/06",
> > "10/15/05", "10/15/11", "10/15/16", "10/16/04", "10/16/10", "10/17/09",
> > "10/17/15", "10/18/03", "10/18/08", "10/18/14", "10/19/13", "10/20/07",
> > "10/20/12", "10/21/06", "10/22/05", "10/22/11", "10/22/16", "10/23/04",
> > "10/23/10", "10/24/09", "10/24/15", "10/25/03", "10/25/08", "10/25/14",
> > "10/26/13", "10/27/07", "10/27/12", "10/28/06", "10/29/05", "10/29/11",
> > "10/29/16", "10/30/04", "10/30/10", "10/31/09", "10/31/15", "11/01/03",
> > "11/01/08", "11/01/14", "11/02/13", "11/03/07", "11/03/12", "11/04/06",
> > "11/05/05", "11/05/11", "11/05/16", "11/06/04", "11/06/10", "11/07/09",
> > "11/07/15", "11/08/03", "11/08/08", "11/08/14", "11/09/13", "11/10/07",
> > "11/10/12", "11/11/06", "11/12/05", "11/12/11", "11/12/16", "11/13/04",
> > "11/13/10", "11/14/09", "11/14/15", "11/15/03", "11/15/08", "11/15/14",
> > "11/16/13", "11/17/07", "11/17/12", "11/18/06", "11/19/05", "11/19/11",
> > "11/19/16", "11/20/04", "11/20/10", "11/21/09", "11/21/15", "11/22/03",
> > "11/22/08", "11/22/14", "11/23/13", "11/24/07", "11/24/12", "11/25/06",
> > "11/26/05", "11/26/11", "11/26/16", "11/27/04", "11/27/10", "11/28/09",
> > "11/28/15", "11/29/03", "11/29/08", "11/29/14", "11/30/13", "12/01/07",
> > "12/01/12", "12/02/06", "12/03/05", "12/03/11", "12/03/16", "12/04/04",
> > "12/04/10", "12/05/09", "12/05/15", "12/06/03", "12/06/08", "12/06/14",
> > "12/07/13", "12/08/07", "12/08/12", "12/09/06", "12/10/05", "12/10/11",
> > "12/10/16", "12/11/04", "12/11/10", "12/12/09", "12/12/15", "12/13/03",
> > "12/13/08", "12/13/14", "12/14/13", "12/15/07", "12/15/12", "12/16/06",
> > "12/17/05", "12/17/11", "12/17/16", "12/18/04", "12/18/10", "12/19/09",
> > "12/19/15", "12/20/03", "12/20/08", "12/20/14", "12/21/13", "12/22/07",
> > "12/22/12", "12/23/06", "12/24/05", "12/24/11", "12/24/16", "12/25/04",
> > "12/25/10", "12/26/09", "12/26/15", "12/27/03", "12/27/08", "12/27/14",
> > "12/28/13", "12/29/07", "12/29/12", "12/30/06", "12/31/05", "12/31/11",
> > "12/31/16"), class = "factor"),
>
> Those are not R dates. Unless you convert to dates then they will have alpha sort order which is probably NOT what you expected.
>
> Perhaps:
>
> dat$fixed_dates <- as.Date( as.character(dat$Date), format="%m/%d/%y")
>
>
>
> --
> David
> > Transits = c(11L, 17L, 14L, 18L,
> > 12L, 14L, 21L, 14L, 16L, 10L, 11L, 10L, 6L, 8L, 12L, 11L, 8L,
> > 6L, 7L, 9L, 6L, 5L, 3L, 12L, 10L, 5L, 6L, 5L, 9L, 14L, 6L, 6L,
> > 5L, 6L, 7L, 6L, 5L, 6L, 4L, 14L, 10L, 7L, 9L, 8L, 9L, 12L, 12L,
> > 13L, 9L, 15L, 19L, 9L, 8L, 7L, 8L, 16L, 19L, 14L, 15L, 7L, 12L,
> > 16L, 15L, 10L, 17L, 7L, 5L, 6L, 10L, 4L, 5L, 5L, 9L, 5L, 2L,
> > 6L, 8L, 5L, 4L, 8L, 7L, 9L, 6L, 7L, 8L, 5L, 9L, 7L, 5L, 13L,
> > 11L, 15L, 9L, 11L, 17L, 17L, 10L, 14L, 20L, 18L, 8L, 17L, 7L,
> > 12L, 9L, 10L, 6L, 7L, 11L, 9L, 7L, 10L, 7L, 10L, 13L, 12L, 10L,
> > 8L, 11L, 10L, 9L, 10L, 8L, 9L, 6L, 9L, 7L, 6L, 6L, 11L, 10L,
> > 5L, 4L, 7L, 14L, 11L, 8L, 10L, 7L, 5L, 4L, 8L, 6L, 15L, 11L,
> > 14L, 16L, 18L, 20L, 14L, 18L, 14L, 13L, 16L, 17L, 9L, 11L, 16L,
> > 13L, 12L, 11L, 16L, 16L, 17L, 21L, 13L, 19L, 16L, 14L, 13L, 11L,
> > 8L, 8L, 19L, 9L, 11L, 10L, 17L, 12L, 10L, 11L, 13L, 12L, 11L,
> > 8L, 12L, 19L, 14L, 9L, 9L, 16L, 20L, 13L, 12L, 14L, 13L, 12L,
> > 18L, 13L, 12L, 19L, 16L, 16L, 17L, 16L, 20L, 20L, 13L, 14L, 13L,
> > 7L, 16L, 15L, 17L, 16L, 15L, 17L, 18L, 17L, 16L, 14L, 12L, 9L,
> > 9L, 6L, 14L, 8L, 17L, 9L, 12L, 11L, 8L, 11L, 10L, 13L, 7L, 4L,
> > 10L, 12L, 11L, 8L, 8L, 13L, 6L, 9L, 6L, 18L, 11L, 13L, 10L, 17L,
> > 14L, 10L, 14L, 11L, 15L, 19L, 17L, 15L, 18L, 14L, 12L, 20L, 12L,
> > 12L, 16L, 16L, 17L, 11L, 10L, 11L, 13L, 16L, 17L, 9L, 11L, 13L,
> > 7L, 7L, 7L, 10L, 9L, 5L, 12L, 8L, 8L, 10L, 10L, 12L, 9L, 8L,
> > 9L, 12L, 10L, 9L, 6L, 9L, 2L, 9L, 8L, 10L, 12L, 13L, 15L, 12L,
> > 13L, 12L, 17L, 18L, 14L, 21L, 15L, 19L, 15L, 11L, 18L, 20L, 18L,
> > 19L, 19L, 18L, 20L, 16L, 15L, 11L, 20L, 12L, 13L, 12L, 10L, 11L,
> > 12L, 14L, 9L, 7L, 11L, 12L, 14L, 11L, 11L, 9L, 20L, 9L, 11L,
> > 9L, 10L, 9L, 15L, 8L, 8L, 13L, 10L, 15L, 11L, 14L, 16L, 25L,
> > 20L, 23L, 31L, 29L, 21L, 20L, 16L, 25L, 20L, 16L, 20L, 21L, 19L,
> > 16L, 22L, 17L, 18L, 20L, 16L, 15L, 14L, 15L, 10L, 7L, 15L, 10L,
> > 5L, 14L, 7L, 16L, 11L, 12L, 8L, 8L, 8L, 9L, 9L, 9L, 14L, 5L,
> > 12L, 9L, 8L, 11L, 11L, 7L, 11L, 16L, 18L, 17L, 31L, 21L, 30L,
> > 21L, 29L, 26L, 22L, 14L, 26L, 19L, 20L, 10L, 15L, 22L, 15L, 21L,
> > 13L, 19L, 19L, 22L, 19L, 15L, 16L, 18L, 15L, 13L, 13L, 8L, 6L,
> > 9L, 9L, 11L, 10L, 7L, 7L, 8L, 11L, 7L, 7L, 10L, 6L, 8L, 9L, 5L,
> > 10L, 6L, 8L, 12L, 6L, 17L, 12L, 16L, 13L, 14L, 18L, 25L, 19L,
> > 19L, 24L, 14L, 18L, 20L, 18L, 16L, 17L, 12L, 21L, 20L, 18L, 15L,
> > 12L, 13L, 11L, 9L, 10L, 11L, 8L, 12L, 12L, 4L, 5L, 5L, 11L, 9L,
> > 10L, 7L, 3L, 13L, 6L, 10L, 9L, 9L, 10L, 10L, 8L, 10L, 6L, 12L,
> > 5L, 12L, 13L, 19L, 10L, 14L, 20L, 19L, 20L, 16L, 22L, 16L, 24L,
> > 16L, 20L, 20L, 13L, 9L, 11L, 8L, 13L, 16L, 10L, 13L, 11L, 15L,
> > 6L, 6L, 5L, 7L, 3L, 7L, 4L, 7L, 6L, 5L, 4L, 7L, 10L, 5L, 7L,
> > 1L, 6L, 10L, 5L, 8L, 8L, 10L, 6L, 6L, 11L, 8L, 7L, 10L, 12L,
> > 11L, 14L, 17L, 20L, 29L, 21L, 24L, 25L, 32L, 26L, 29L, 18L, 22L,
> > 19L, 16L, 17L, 25L, 16L, 24L, 21L, 16L, 25L, 16L, 23L, 23L, 16L,
> > 14L, 18L, 12L, 17L, 16L, 9L, 12L, 5L, 11L, 9L, 8L, 13L, 10L,
> > 6L, 6L, 10L, 14L, 12L, 7L, 13L, 10L, 14L, 13L, 4L, 16L, 19L,
> > 16L, 15L, 30L, 26L, 29L, 31L, 22L, 26L, 35L, 35L, 30L, 21L, 25L,
> > 31L, 20L, 21L, 23L, 27L, 21L, 24L, 16L, 28L, 11L, 19L, 16L, 13L,
> > 14L, 13L, 19L, 15L, 15L, 22L, 14L, 24L, 16L, 16L, 12L, 12L, 14L,
> > 14L, 12L, 16L, 8L, 10L, 15L, 16L, 11L, 16L, 9L, 15L, 12L, 15L,
> > 6L, 15L, 19L, 19L, 20L, 19L, 21L, 20L, 23L, 21L, 15L, 15L, 24L,
> > 13L, 9L, 11L, 10L, 11L, 13L, 15L, 9L, 17L, 22L, 16L, 16L, 13L,
> > 15L, 15L, 13L, 11L, 11L, 15L, 10L, 12L, 14L, 6L, 11L, 9L, 12L,
> > 4L, 12L, 7L, 9L, 7L, 15L, 13L, 12L, 8L, 5L, 16L, 13L, 13L, 15L,
> > 16L, 16L, 13L, 21L, 15L, 18L, 22L, 12L, 16L, 25L, 14L, 17L, 12L,
> > 10L)), .Names = c("Date", "Transits"), class = "data.frame", row.names =
> > c(NA,
> > -731L))
> >
> >
> > This is the result I get from the forecast:
> >
> > dput(Forecasts):
> >
> > structure(list(Point.Forecast = c(19.4253367238618, 12.2907914272766,
> > 12.9624076300088, 18.0807466065309, 15.9843908802223, 16.5321579531827,
> > 16.7184964071333, 10.1201838392972, 20.7203714449961, 7.45002607776652,
> > 14.9836817432811, 13.3820472411712), Lo.80 = c(13.9434152149432,
> > 6.74027066336727, 7.25612824519892, 12.2923074967212, 10.0690364921587,
> > 10.501665758874, 10.5705243712663, 3.85957289110304, 14.3484486381226,
> > 0.968987377892339, 8.39518758108775, 6.6878669395083), Hi.80 =
> > c(24.9072582327803,
> > 17.841312191186, 18.6686870148187, 23.8691857163406, 21.8997452682858,
> > 22.5626501474914, 22.8664684430002, 16.3807947874913, 27.0922942518695,
> > 13.9310647776407, 21.5721759054744, 20.0762275428341), Lo.95 =
> > c(11.0414612619408,
> > 3.80200245835122, 4.23540640692652, 9.2280929272317, 6.93763703269479,
> > 7.30931602651216, 7.31598456740248, 0.545405648875148, 10.975356457297,
> > -2.4618672675205, 4.90744944999539, 3.14418194567588), Hi.95 =
> > c(27.8092121857828,
> > 20.779580396202, 21.6894088530911, 26.9334002858301, 25.0311447277497,
> > 25.7549998798532, 26.121008246864, 19.6949620297192, 30.4653864326951,
> > 17.3619194230535, 25.0599140365668, 23.6199125366665)), .Names =
> > c("Point.Forecast",
> > "Lo.80", "Hi.80", "Lo.95", "Hi.95"), row.names = c("2016.019",
> > "2016.038", "2016.058", "2016.077", "2016.096", "2016.115", "2016.135",
> > "2016.154", "2016.173", "2016.192", "2016.212", "2016.231"), class =
> > "data.frame")
> >
> > Thank you beforehand for your valuable support,
> >
> > Best regards,
> >
> > Paul
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> David Winsemius
> Alameda, CA, USA
>
> 'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law
>
>
>
>
>
>

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   -Gehm's Corollary to Clarke's Third Law

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.