R Dataset / Package wooldridge / airfare

Documentation

On this R-data statistics page, you will find information about the airfare data set which pertains to airfare. The airfare data set is found in the wooldridge R package. You can load the airfare data set in R by issuing the following command at the console data("airfare"). This will load the data into a variable called airfare. If R says the airfare data set is not found, you can try installing the package by issuing this command install.packages("wooldridge") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the airfare R data set. The size of this file is about 600,246 bytes.


airfare

Description

Data loads lazily. Type data(airfare) into the console.

Usage

data(airfare)

Format

A data.frame with 4596 rows and 14 variables:

  • year. 1997, 1998, 1999, 2000

  • id. route identifier

  • dist. distance, in miles

  • passen. avg. passengers per day

  • fare. avg. one-way fare, $

  • bmktshr. fraction market, biggest carrier

  • ldist. log(distance)

  • y98. =1 if year == 1998

  • y99. =1 if year == 1999

  • y00. =1 if year == 2000

  • lfare. log(fare)

  • ldistsq. ldist^2

  • concen. = bmktshr

  • lpassen. log(passen)

Source

https://www.cengage.com/cgi-wadsworth/course_products_wp.pl?fid=M20b&product_isbn_issn=9781111531041

Examples

 str(airfare)
--

Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-49850.csv 586.18 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.