[R] Two bugs in TS package?
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Sun Mar 30 20:47:32 CEST 2003
On Sun, 30 Mar 2003, Agustin Alonso wrote:
> I am working with the Time Series package, and I have found that the
results returned by the following two funtions are not what it
should be expected.
>
> 1.- The function tsp(name of a series) does not report the start, deltat and frequency of the series. For example, for the series: deaths, from library MASS,
> tsp(deaths) returns: 1974.000 1979.917 12.000, but the expected return should be: 1974 0.083333 12.
tsp is *not* in the TS package, and it is documented in help(tsp) to give
`the start time in time units, the end time and the frequency.'
Who `expected' the values you gave, and why `should' they be expected to
differ from the documentation?
> 2.- The function Box.test does not report the correct degrees of
freedom. The reported df are the same as the number of lags given by the user.
What in your opinion is the correct number of df, and what is your
reference? Have you checked the references given on the help page?
> Would you, please, verify if I am right?
Why not read the documentation rather than asking R-help to do it for you?
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list