R Dataset / Package wooldridge / mlb1

How To Create a Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Stacked Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Pie Chart

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Compute the Mean

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Plot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How to Compute the Median

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Boxplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Correlation Coefficient

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Cumulative Frequency Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Dotplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Hollow Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Numerical Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Pie Chart

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Plot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Regression

Stem and Leaf Plots

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Visual Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Embed
<iframe src="https://embed.picostat.com/r-dataset-package-wooldridge-mlb1.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-56688.csv 102.28 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0
Dataset Help

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

Documentation

mlb1

Description

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

Usage

data(mlb1)

Format

A data.frame with 353 rows and 47 variables:

  • salary. 1993 season salary

  • teamsal. team payroll

  • nl. =1 if national league

  • years. years in major leagues

  • games. career games played

  • atbats. career at bats

  • runs. career runs scored

  • hits. career hits

  • doubles. career doubles

  • triples. career triples

  • hruns. career home runs

  • rbis. career runs batted in

  • bavg. career batting average

  • bb. career walks

  • so. career strike outs

  • sbases. career stolen bases

  • fldperc. career fielding perc

  • frstbase. = 1 if first base

  • scndbase. =1 if second base

  • shrtstop. =1 if shortstop

  • thrdbase. =1 if third base

  • outfield. =1 if outfield

  • catcher. =1 if catcher

  • yrsallst. years as all-star

  • hispan. =1 if hispanic

  • black. =1 if black

  • whitepop. white pop. in city

  • blackpop. black pop. in city

  • hisppop. hispanic pop. in city

  • pcinc. city per capita income

  • gamesyr. games per year in league

  • hrunsyr. home runs per year

  • atbatsyr. at bats per year

  • allstar. perc. of years an all-star

  • slugavg. career slugging average

  • rbisyr. rbis per year

  • sbasesyr. stolen bases per year

  • runsyr. runs scored per year

  • percwhte. percent white in city

  • percblck. percent black in city

  • perchisp. percent hispanic in city

  • blckpb. black*percblck

  • hispph. hispan*perchisp

  • whtepw. white*percwhte

  • blckph. black*perchisp

  • hisppb. hispan*percblck

  • lsalary. log(salary)

Source

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

Examples

 str(mlb1)
--

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

Recent Queries For This Dataset

No queries made on this dataset yet.