R Dataset / Package wooldridge / vote2

On this R-data statistics page, you will find information about the vote2 data set which pertains to vote2. The vote2 data set is found in the wooldridge R package. You can load the vote2 data set in R by issuing the following command at the console data("vote2"). This will load the data into a variable called vote2. If R says the vote2 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 with the library() command. 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 vote2 R data set. The size of this file is about 38,540 bytes.

vote2

Description

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

Usage

data(vote2)

Format

A data.frame with 186 rows and 26 variables:

  • state. state postal code

  • district. U.S. Congressional district

  • democ. =1 if incumbent democrat

  • vote90. inc. share two-party vote, 1990

  • vote88. inc. share two-party vote, 1988

  • inexp90. inc. camp. expends., 1990

  • chexp90. chl. camp. expends., 1990

  • inexp88. inc. camp. expends., 1988

  • chexp88. chl. camp. expends., 1988

  • prtystr. percent vote pres., same party, 1988

  • rptchall. =1 if a repeat challenger

  • tenure. years in H.R.

  • lawyer. =1 if law degree

  • linexp90. log(inexp90)

  • lchexp90. log(chexp90)

  • linexp88. log(inexp88)

  • lchexp88. log(chexp88)

  • incshr90. 100*(inexp90/(inexp90+chexp90))

  • incshr88. 100*(inexp88/(inexp88+chexp88))

  • cvote. vote90 - vote88

  • clinexp. linexp90 - linexp88

  • clchexp. lchexp90 - lchexp88

  • cincshr. incshr90 - incshr88

  • win88. =1 by definition

  • win90. =1 if inc. wins, 1990

  • cwin. win90 - win88

Source

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

Examples

 str(vote2)

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

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-wooldridge-vote2.html" width="100%" height="100%" style="border:0px"></iframe>