Displaying 5 results from an estimated 5 matches for "altomani".
Did you mean:
altdomain
2017 Sep 01
2
Precision error in time index of ts objects
...), :
non-intersecting series
and indeed, comparing the indices gives:
> time(x)[1]-time(z)[1]
[1] 3.183231e-12
Is this a bug in R, or is it one of the expected precision errors due
to the use of limited precision floats?
I am using R 3.4.0 (2017-04-21) on Windows (64-bit).
Thaks!
Andrea Altomani
2017 Sep 01
2
Precision error in time index of ts objects
...In my case:
- x and y have the same index.
- the subtraction operator recognizes this, and create a new ts with one
entry
- the result of the subtraction has an index which is different from the
input.
This is very surprising to me, and I am curious to understand the problem.
--
Andrea Altomani
On Fri, Sep 1, 2017 at 5:53 PM Jeff Newmiller <jdnewmil at dcn.davis.ca.us>
wrote:
> You already know the answer. Why ask?
> --
> Sent from my phone. Please excuse my brevity.
>
> On September 1, 2017 7:23:24 AM PDT, Andrea Altomani <
> altomani.andrea at gmail.com>...
2017 Sep 01
0
Precision error in time index of ts objects
You already know the answer. Why ask?
--
Sent from my phone. Please excuse my brevity.
On September 1, 2017 7:23:24 AM PDT, Andrea Altomani <altomani.andrea at gmail.com> wrote:
>I have a time series x, and two other series obtained from it:
>
>x <- structure(2017, .Tsp = c(2017.41666666667, 2017.41666666667, 12),
>class = "ts")
>y <- floor(x)
>z <- x-y
>
>I would expect the three series...
2017 Sep 02
1
Precision error in time index of ts objects
...create the series using structure(), that was the result of
dump() on an intermediate object created within tsdisagg::ta(), which is
where I found the error in the first place. ta() indeed manipulates .Tsp
directly, rather than using ts. I guess this is a bug in tsdisagg then.
Thanks!
--
Andrea Altomani
On Sat, Sep 2, 2017 at 12:31 AM Achim Zeileis <Achim.Zeileis at uibk.ac.at>
wrote:
> On Fri, 1 Sep 2017, Andrea Altomani wrote:
>
> > I should have formulated my question in a more specific way.
> >
> > 1. I suspect this is a floating point precision issue. I am not...
2017 Sep 01
0
Precision error in time index of ts objects
On Fri, 1 Sep 2017, Andrea Altomani wrote:
> I should have formulated my question in a more specific way.
>
> 1. I suspect this is a floating point precision issue. I am not very
> knowledgeable about R internals, can someone else confirm it?
Yes. If you represent a series with increment 1/12 it depends on how you
do...