The R Project SVN R

Rev

Rev 88710 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88710 Rev 89605
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-2018 R Core Team
3
% Copyright 1995-2026 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 13... Line 13...
13
\description{
13
\description{
14
  \code{UKDriverDeaths} is a time series giving the monthly totals
14
  \code{UKDriverDeaths} is a time series giving the monthly totals
15
  of car drivers in
15
  of car drivers in
16
  Great Britain killed or seriously injured Jan 1969 to Dec 1984.
16
  Great Britain killed or seriously injured Jan 1969 to Dec 1984.
17
  Compulsory wearing of seat belts was introduced on 31 Jan 1983.
17
  Compulsory wearing of seat belts was introduced on 31 Jan 1983.
-
 
18
  The effects of this intervention were analyzed by
-
 
19
  \bibcitet{R:Harvey+Durbin:1986}.
18
 
20
 
19
  \code{Seatbelts} is more information on the same problem.
21
  \code{Seatbelts} is more information on the same problem.
20
}
22
}
21
\usage{
23
\usage{
22
UKDriverDeaths
24
UKDriverDeaths
Line 30... Line 32...
30
    \item{\code{front}}{front-seat passengers killed or seriously injured.}
32
    \item{\code{front}}{front-seat passengers killed or seriously injured.}
31
    \item{\code{rear}}{rear-seat passengers killed or seriously injured.}
33
    \item{\code{rear}}{rear-seat passengers killed or seriously injured.}
32
    \item{\code{kms}}{distance driven.}
34
    \item{\code{kms}}{distance driven.}
33
    \item{\code{PetrolPrice}}{petrol price.}
35
    \item{\code{PetrolPrice}}{petrol price.}
34
    \item{\code{VanKilled}}{number of van (\sQuote{light goods vehicle})
36
    \item{\code{VanKilled}}{number of van (\sQuote{light goods vehicle})
35
      drivers.}
37
      drivers killed.}
36
    \item{\code{law}}{0/1: was the law in effect that month?}
38
    \item{\code{law}}{0/1: was the law in effect that month?}
37
  }
39
  }
38
}
40
}
39
\source{
41
\source{
-
 
42
  \bibinfo{R:Durbin+Koopman:2001}{footer}{
-
 
43
    Data was available from the book website, now archived at
-
 
44
    \url{https://web.archive.org/web/20020304222057/http://www.ssfpack.com/dkbook/}.}
-
 
45
  \describe{
-
 
46
    \item{Of \code{UKDriverDeaths}:}{\bibshow{R:Harvey:1989} Pages 519--523.}
40
  \bibcitet{|R:Harvey:1989|pages 519--523, R:Durbin+Koopman:2001}.
47
    \item{Of \code{Seatbelts}, additionally:}{\bibshow{R:Durbin+Koopman:2001}}
-
 
48
  }
41
}
49
}
42
\references{
50
\references{
43
  \bibshow{*, R:Harvey+Durbin:1986}
51
  \bibshow{*}
44
}
52
}
45
\examples{
53
\examples{
46
require(stats); require(graphics)
54
require(stats); require(graphics)
47
## work with pre-seatbelt period to identify a model, use logs
55
## work with pre-seatbelt period to identify a model, use logs
48
work <- window(log10(UKDriverDeaths), end = 1982+11/12)
56
work <- window(log10(UKDriverDeaths), end = 1982+11/12)