Last data update: 2014.03.03

R: Gasoline Consumption Data
OECDGasR Documentation

Gasoline Consumption Data

Description

Panel data on gasoline consumption in 18 OECD countries over 19 years, 1960–1978.

Usage

data("OECDGas")

Format

A data frame containing 342 observations on 6 variables.

country

Factor indicating country.

year

Year.

gas

Logarithm of motor gasoline consumption per car.

income

Logarithm of real per-capita income.

price

Logarithm of real motor gasoline price.

cars

Logarithm of the stock of cars per-capita.

Source

The data is from Baltagi (2002).

References

Baltagi, B.H. (2002). Econometrics, 3rd ed. Berlin, Springer.

Baltagi, B.H. and Griffin, J.M. (1983). Gasoline Demand in the OECD: An Application of Pooling and Testing Procedures. European Economic Review, 22, 117–137.

See Also

Baltagi2002

Examples

data("OECDGas")

library("lattice")
xyplot(exp(cars) ~ year | country, data = OECDGas, type = "l")
xyplot(exp(gas) ~ year | country, data = OECDGas, type = "l")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AER)
Loading required package: car
Loading required package: lmtest
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: sandwich
Loading required package: survival
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AER/OECDGas.Rd_%03d_medium.png", width=480, height=480)
> ### Name: OECDGas
> ### Title: Gasoline Consumption Data
> ### Aliases: OECDGas
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data("OECDGas")
> 
> library("lattice")
> xyplot(exp(cars) ~ year | country, data = OECDGas, type = "l")
> xyplot(exp(gas) ~ year | country, data = OECDGas, type = "l")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>