The R Project SVN R

Rev

Rev 68948 | Rev 88593 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 74265
Line 1... Line 1...
1
% File src/library/datasets/man/UKDriverDeaths.Rd
1
% File src/library/datasets/man/UKDriverDeaths.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{UKDriverDeaths}
6
\name{UKDriverDeaths}
7
\docType{data}
7
\docType{data}
8
\alias{UKDriverDeaths}
8
\alias{UKDriverDeaths}
Line 35... Line 35...
35
      drivers.}
35
      drivers.}
36
    \item{\code{law}}{0/1: was the law in effect that month?}
36
    \item{\code{law}}{0/1: was the law in effect that month?}
37
  }
37
  }
38
}
38
}
39
\source{
39
\source{
40
  Harvey, A.C. (1989)
40
  Harvey, A.C. (1989).
41
  \emph{Forecasting, Structural Time Series Models and the Kalman Filter.}
41
  \emph{Forecasting, Structural Time Series Models and the Kalman Filter}.
42
  Cambridge University Press, pp.\sspace{}519--523.
42
  Cambridge University Press, pp.\sspace{}519--523.
43
 
43
 
44
  Durbin, J. and Koopman, S. J. (2001) \emph{Time Series Analysis by
44
  Durbin, J. and Koopman, S. J. (2001).
-
 
45
  \emph{Time Series Analysis by State Space Methods}.
45
    State Space Methods.}  Oxford University Press.
46
  Oxford University Press.
46
  \url{http://www.ssfpack.com/dkbook/}
47
  \url{http://www.ssfpack.com/dkbook/}
47
}
48
}
48
\references{
49
\references{
49
  Harvey, A. C. and Durbin, J. (1986) The effects of seat belt
50
  Harvey, A. C. and Durbin, J. (1986).
50
  legislation on British road casualties: A case study in structural
51
  The effects of seat belt legislation on British road casualties: A
-
 
52
  case study in structural time series modelling.
51
  time series modelling. \emph{Journal of the Royal Statistical Society}
53
  \emph{Journal of the Royal Statistical Society} series A, \bold{149},
-
 
54
  187--227.
52
  series B, \bold{149}, 187--227.
55
  \doi{10.2307/2981553}.
53
}
56
}
54
\examples{
57
\examples{
55
require(stats); require(graphics)
58
require(stats); require(graphics)
56
## work with pre-seatbelt period to identify a model, use logs
59
## work with pre-seatbelt period to identify a model, use logs
57
work <- window(log10(UKDriverDeaths), end = 1982+11/12)
60
work <- window(log10(UKDriverDeaths), end = 1982+11/12)