Learn R Programming

⚠️There's a newer version (1.2.2) of this package.Take me there.

BSDA

Version 1.2.0

Alan T. Arnholt

BSDA: Functions and data sets for the text Basic Statistics and Data Analysis

Please report any bugs or suggestions at: https://github.com/alanarnholt/BSDA/issues.

Installation

The package is available for download from CRAN.

You may download the most recent version using the devtools function install_github() to install BSDA in R.

However, you need to make sure you're set up to develop packages. This is platform specific:

  • On Windows, download and install Rtools.
  • On the Mac, make sure you have Xcode installed.
  • On Linux, make sure you have the R-dev packages installed.

You can check everything is installed correctly with the has_devel() function from the devtools package. Type the following at the R prompt:

install.packages("devtools", dependencies = TRUE)    
devtools::has_devel()

If everything is installed correctly, the function will print some output and then return TRUE.

To install the BSDA package, type the following at the R prompt:

devtools::install_github('alanarnholt/BSDA')

It is possible to install BSDA with GIT and the R CMD build assuming you have GIT installed and the appropriate tools to build R from source.

git clone https://github.com/alanarnholt/BSDA.git
R CMD build BSDA
R CMD INSTALL BSDA_*.tar.gz

Copy Link

Version

Install

install.packages('BSDA')

Monthly Downloads

19,014

Version

1.2.0

License

GPL (>= 2)

Maintainer

Last Published

July 30th, 2017

Functions in BSDA (1.2.0)

Abortion

Abortion rate by region of country
Absent

Number of absent days for 20 employees
Allergy

Allergy medicines by adverse events
Abbey

Daily price returns (in pence) of Abbey National shares between 7/31/91 and 10/8/91
Abc

Three samples to illustrate analysis of variance
Anxiety

Math test scores versus anxiety scores before the test
Apolipop

Level of apolipoprotein B and number of cups of coffee consumed per day for 15 adult males
Backtoback

Illustrates inferences based on pooled t-test versus Wilcoxon rank sum test
Bbsalaries

Baseball salaries for members of five major league teams
Bones

Bone density measurements of 35 physically active and 35 non-active women
Abilene

Crimes reported in Abilene, Texas
Ability

Perceived math ability for 13-year olds by gender
Airline

Percentage of on-time arrivals and number of complaints for 11 airlines
Books

Number of books read and final spelling scores for 17 third graders
Bumpers

Repair costs of vehicles crashed into a barrier at 5 miles per hour
Bus

Attendance of bus drivers versus shift
Cigar

Milligrams of tar in 25 cigarettes selected randomly from 4 different brands
Aggress

Agressive tendency scores for a group of teenage members of a street gang
Aid

Monthly payments per person for families in the AFDC federal program
Cigarett

Effect of mother's smoking on birth weight of newborn
Coins

Yearly returns on 12 investments
Combinations

Combinations
Defectiv

Number of defective items produced by 20 employees
Achieve

Math achievement test scores by gender for 25 high school students
Adsales

Number of ads versus number of sales for a retailer of satellite dishes
Aids

Incubation times for 295 patients thought to be infected with HIV by a blood transfusion
Anesthet

Recovery times for anesthetized patients
Asprin

Dissolving time versus level of impurities in aspirin tablets
Asthmati

Asthmatic relief index on nine subjects given a drug and a placebo
Birth

Live birth rates in 1990 and 1998 for all states
Attorney

Number of convictions reported by U.S. attorney's offices
Autogear

Number of defective auto gears produced by two manufacturers
Blood

Blood pressure of 15 adult males taken by machine and by an expert
Degree

Percent of bachelor's degrees awarded women in 1970 versus 1990
Diesel

Diesel fuel prices in 1999-2000 in nine regions of the country
Diplomat

Parking tickets issued to diplomats
Alcohol

Ages at which 14 female alcoholics began drinking
Engineer

Salaries after 10 years for graduates of three different universities
Entrance

College entrance exam scores for 24 high school seniors
Ferraro2

Choice of vice presidental candidate in 1984 by gender
Fertility

Fertility rates of all 50 states and DC
Blackedu

Education level of blacks by gender
Carbon

Carbon monoxide level measured at three industrial sites
Cat

Reading scores on the California achievement test for a group of 3rd graders
Chevy

Insurance injury ratings of Chevrolet vehicles for 1990 and 1993 models
Airdisasters

Aircraft disasters in five different decades
Aptitude

Aptitude test scores versus productivity in a factory
Archaeo

Radiocarbon ages of observations taken from an archaeological site
Bookstor

Prices paid for used books at three different bookstores
Funeral

Cost of funeral by region of country
Galaxie

Velocities of 82 galaxies in the Corona Borealis region
Greenriv

Varve thickness from a sequence through an Eocene lake deposit in the Rocky Mountains
Grnriv2

Thickness of a varved section of the Green river oil shale deposit near a major lake in the Rocky Mountains
Groupabc

Group data to illustrate analysis of variance
Brain

Brain weight versus body weight of 28 animals
Cabinets

Estimates of costs of kitchen cabinets by two suppliers on 20 prospective homes
Cancer

Survival times of terminal cancer patients treated with vitamin C
Chipavg

Measurements of the thickness of the oxide layer of manufactured integrated circuits
Chips

Four measurements on a first wafer and four measurements on a second wafer selected from 30 lots
Commute

Commuting times for selected cities in 1980 and 1990
Concept

Tennessee self concept scale scores for a group of teenage boys
Detroit

Educational levels of a sample of 40 auto workers in Detroit
Groups

An illustration of analysis of variance
Housing

Median home prices for 1984 and 1993 in 37 markets across the U.S.
Hurrican

Number of storms, hurricanes and El Nino effects from 1950 through 1995
Inflatio

Private pay increase of salaried employees versus inflation rate
Develop

Demographic characteristics of developmental students at 2-year colleges and 4-year colleges
Domestic

Rates of domestic violence per 1,000 women by age groups
Dopamine

Dopamine b-hydroxylase activity of schizophrenic patients treated with an antipsychotic drug
EDA

Exploratory Data Anaalysis
Chicken

Weight gain of chickens fed three different rations
Coaxial

Signal loss from three types of coxial cable
Coffee

Productivity of workers with and without a coffee break
Delay

Delay times on 20 flights from four major air carriers
Board

Incomes of board members from three different universities
Bypass

Median charges for coronary bypass at 17 hospitals in North Carolina
CIsim

Confidence Interval Simulation Program
Citrus

Percent of peak bone density of different aged children
Clean

Residual contaminant following the use of three different cleansing agents
Correlat

Exercise to illustrate correlation
Counsel

Scores of 18 volunteers who participated in a counseling process
Darwin

Charles Darwin's study of cross-fertilized and self-fertilized plants
Inletoil

Inlet oil temperature through a valve
Leader

Leadership exam scores by age for employees on an industrial plant
Lethal

Survival time of mice injected with an experimental lethal drug
Magnesiu

Magnesium concentration and distances between samples
Dealers

Automobile dealers classified according to type dealership and service rendered to customers
Disposal

Toxic intensity for manufacturing plants producing herbicidal preparations
Dogs

Rankings of the favorite breeds of dogs
Drug

Number of trials to master a task for a group of 28 subjects assigned to a control and an experimental group
Dyslexia

Data on a group of college students diagnosed with dyslexia
Append

Median costs of an appendectomy at 20 hospitals in North Carolina
Appendec

Median costs of appendectomies at three different types of North Carolina hospitals
Arthriti

Time of relief for three treatments of arthritis
Artifici

Durations of operation for 15 artificial heart transplants
Earthqk

One hundred year record of worldwide seismic activity(1770-1869)
Family

Size of family versus cost per person per week for groceries
Ferraro1

Choice of presidental ticket in 1984 by gender
Fitness

Number of sit-ups before and after a physical fitness course
Malpract

Amounts awarded in 17 malpractice cases
Median

Illustrates test of equality of medians with the Kruskal Wallis test
Mental

Median mental ages of 16 girls
Nfldraf2

Rating, time in 40-yard dash, and weight of top defensive linemen in the 1994 NFL draft
Fabric

Measures of softness of ten different clothing garments washed with and without a softener
Faithful

Waiting times between successive eruptions of the Old Faithful geyser
Fluid

Breakdown times of an insulating fluid under various levels of voltage stress
Nfldraft

Rating, time in 40-yard dash, and weight of top offensive linemen in the 1994 NFL draft
Parented

Education backgrounds of parents of entering freshmen at a state university
Patrol

Years of experience and number of tickets given by patrolpersons in New York City
Press

Degree of confidence in the press versus education level for 20 randomly selected persons
Florida2000

Florida voter results in the 2000 presidential election
Grades

Test grades in a beginning statistics class
Graduate

Graduation rates for student athletes in the Southeastern Conf.
Heating

Fuel efficiency ratings for three types of oil heaters
Food

Annual food expenditures for 40 single households in Ohio
German

Number of errors in copying a German passage before and after an experimental course in German
Golf

Distances a golf ball can be driven by 20 professional golfers
Haptoglo

Haptoglobin concentration in blood serum of 8 healthy adults
Hodgkin

Results of treatments for Hodgkin's disease
Iceberg

Number of icebergs sighted each month south of Newfoundland and south of the Grand Banks in 1920
Income

Percent change in personal income from 1st to 2nd quarter in 2000
Indiapol

Average miles per hour for the winners of the Indianapolis 500 race
Hardware

Daily receipts for a small hardware store for 31 working days
Honda

Miles per gallon for a Honda Civic on 35 different occasions
Hostile

Hostility levels of high school students from rural, suburban, and urban areas
Irises

R.A. Fishers famous data on Irises
Jdpower

Number of problems reported per 100 cars in 1994 versus 1995s
Bigten

Graduation rates for student athletes and nonathletes in the Big Ten Conf.
Biology

Test scores on first exam in biology class
Censored

Entry age and survival time of patients with small cell lung cancer under two different treatments
Depend

Number of dependent children for 50 families
Dowjones

Closing yearend Dow Jones Industrial averages from 1896 through 2000
Drink

Opinion on referendum by view on moral issue of selling alcoholic beverages
Elderly

Percent of the population over the age of 65
Indy500

Qualifying miles per hour and number of previous starts for drivers in 79th Indianapolis 500 race
Kilowatt

Rates per kilowatt-hour for each of the 50 states and DC
Kinder

Reading scores for first grade children who attended kindergarten versus those who did not
Challeng

Temperatures and O-ring failures for the launches of the space shuttle Challenger
Jobsat

Job satisfaction and stress level for 9 school teachers
Kidsmoke

Smoking habits of boys and girls ages 12 to 18
Math

Standardized math test scores for 30 students
Mathcomp

Standardized math competency for a group of entering freshmen at a small community college
Miller

Miller personality test scores for a group of college students applying for graduate school
Energy

Amount of energy consumed by homes versus their sizes
Epaminicompact

Fuel efficiency ratings for compact vehicles in 2001
Epatwoseater

Fuel efficiency ratings for two-seater vehicles in 2001
Firstchi

Ages of women at the birth of their first child
Miller1

Twenty scores on the Miller personality test
Nicotine

Nicotine content versus sales for eight major brands of cigarettes
Orange

Price of oranges versus size of the harvest
Pearson

Karl Pearson's data on heights of brothers and sisters
Fish

Length and number of fish caught with small and large mesh codend
Gallup

Results of a Gallup poll on possession of marijuana as a criminal offense conducted in 1980
Gasoline

Price of regular unleaded gasoline obtained from 25 service stations
Hardwood

Tensile strength of Kraft paper for different percentages of hardwood in the batches of pulp
Longtail

Long-tailed distributions to illustrate Kruskal Wallis test
Lowabil

Reading skills of 24 matched low ability students
Mathpro

Math proficiency and SAT scores by states
Maze

Error scores for four groups of experimental animals running a maze
Movie

Moral attitude scale on 15 subjects before and after viewing a movie
Music

Improvement scores for identical twins taught music recognition by two techniques
Poison

Number of poisonings reported to 16 poison control centers
Politic

Political party and gender in a voting district
Prognost

Klopfer's prognostic rating scale for subjects receiving behavior modification therapy
Reaction

Threshold reaction time for persons subjected to emotional stress
Reading

Standardized reading scores for 30 fifth graders
Rehab

Rehabilitative potential of 20 prison inmates as judged by two psychiatrists
Phone

Length of long-distance phone calls for a small business firm
Prejudic

Racial prejudice measured on a sample of 25 high school students
Presiden

Ages at inauguration and death of U.S. presidents
Readiq

Reading scores versus IQ scores
Remedial

Math placement test score for 35 freshmen females and 42 freshmen males
Salary

Starting salaries for 25 new PhD psychologist
Salinity

Surface-water salinity measurements from Whitewater Bay, Florida
Shock

Effect of experimental shock on time to complete difficult task
Chemist

Starting salaries of 50 chemistry majors
Chesapea

Surface salinity measurements taken offshore from Annapolis, Maryland in 1927
Concrete

Compressive strength of concrete blocks made by two different methods
Corn

Comparison of the yields of a new variety and a standard variety of corn planted on 12 plots of land
Heat

Primary heating sources of homes on indian reservations versus all households
Independent

Illustrates a comparison problem for long-tailed distributions
Indian

Educational attainment versus per capita income and poverty rate for American indians living on reservations
Insulate

Heat loss through a new insulating medium
Referend

Opinion on referendum by view on freedom of the press
Region

Pollution index taken in three regions of the country
Register

Maintenance cost versus age of cash registers in a department store
Scales

Readings obtained from a 100 pound weight placed on four brands of bathroom scales
Schizop2

Exam scores for 17 patients to assess the learning ability of schizophrenics after taking a specified does of a tranquilizer
Iqgpa

GPA versus IQ for 12 individuals
Life

Life expectancy of men and women in U.S.
Lifespan

Life span of electronic components used in a spacecraft versus heat
Manager

Advertised salaries offered general managers of major corporations in 1995
Marked

Percent of marked cars in 65 police departments in Florida
Moisture

Moisture content and depth of core sample for marine muds in eastern Louisiana
Monoxide

Carbon monoxide emitted by smoke stacks of a manufacturer and a competitor
Name

Estimated value of a brand name product and the conpany's revenue
Poverty

Percent poverty and crime rate for selected cities
Precinct

Robbery rates versus percent low income in eight precincts
Rat

Survival times of 20 rats exposed to high levels of radiation
Shoplift

Sales receipts versus shoplifting losses for a department store
Slc

Sodium-lithium countertransport activity on 190 individuals from six large English kindred
Smokyph

Water pH levels of 75 water samples taken in the Great Smoky Mountains
Speed

Speed reading scores before and after a course on speed reading
Ratings

Grade point averages versus teacher's ratings
Rentals

Weekly rentals for 45 apartments
Repair

Recorded times for repairing 22 automobiles involved in wrecks
Schizoph

Standardized exam scores for 13 patients to investigate the learning ability of schizophrenics after a specified dose of a tranquilizer
Spellers

Standardized spelling test scores for two fourth grade classes
Step

STEP science test scores for a class of ability-grouped students
Stress

Short-term memory test scores on 12 subjects before and after a stressful situation
Tenness

Tennessee self concept scores for 20 gifted high school students
Seatbelt

Injury level versus seatbelt usage
Short

James Short's measurements of the parallax of the sun
Shuttle

Number of people riding shuttle versus number of automobiles in the downtown area
Sentence

Sentences of 41 prisoners convicted of a homicide offense
Shkdrug

Effects of a drug and electroshock therapy on the ability to solve simple tasks
Sophomor

Grade point averages, SAT scores and final grade in college algebra for 20 sophomores
South

Murder rates for 30 cities in the South
Skewed

Illustrates the Wilcoxon Rank Sum test
Skin

Survival times of closely and poorly matched skin grafts on burn patients
Stamp

Thicknesses of 1872 Hidalgo stamps issued in Mexico
Statclas

Grades for two introductory statistics classes
Cpi

Consumer price index from 1979 to 1998
Crime

Violent crime rates for the states in 1983 and 1993
Devmath

Test scores for students who failed developmental mathematics in the fall semester 1995
Dice

Outcomes and probabilities of the roll of a pair of fair dice
Tensile

Tensile strength of plastic bags from two production runs
Track

National Olympic records for women in several races
Track15

Olympic winning times for the men's 1500-meter run
Visual

Visual acuity of a group of subjects tested under a specified dose of a drug
Sports

Favorite sport by gender
Superbowl

Margin of victory in Superbowls I to XXXV
Supercar

Top speeds attained by five makes of supercars
Vocab

Reading scores before and after vocabulary training for 14 employees who did not complete high school
Wool

Strength tests of two types of wool fabric
Yearsunspot

Monthly sunspot activity from 1974 to 2000
Spelling

Spelling scores for 9 eighth graders before and after a 2-week course of instruction
Nascar

Efficiency of pit crews for three major NASCAR teams
Pollutio

Air pollution index for 15 randomly selected days for a major western city
Porosity

Porosity measurements on 20 samples of Tensleep Sandstone, Pennsylvanian from Bighorn Basin in Wyoming
Psych

Correct responses for 24 students in a psychology experiment
Educat

Crime rates versus the percent of the population without a high school degree
Eggs

Number of eggs versus amounts of feed supplement
Executiv

Ages of 25 executives
Exercise

Weight loss for 30 members of an exercise program
Framingh

Cholesterol values of 62 subjects in the Framingham Heart Study
Study

Number of hours studied per week by a sample of 50 freshmen
Submarin

Number of German submarines sunk by U.S. Navy in World War II
Tort

The number of torts, average number of months to process a tort, and county population from the court files of the nation's largest counties
Toxic

Hazardous waste sites near minority communities
Freshman

Ages of a random sample of 30 college freshmen
Governor

Annual salaries for state governors in 1994 and 1999
Gpa

High school GPA versus college GPA
Gym

Children's age versus number of completed gymnastic activities
Habits

Study habits of students in two matched school districts
Homes

Median prices of single-family homes in 65 metropolitan statistical areas
Homework

Number of hours per week spent on homework for private and public high school students
Inmate

Type of drug offense by race
Vacation

Number of days of paid holidays and vacation leave for sample of 35 textile workers
Vaccine

Reported serious reactions due to vaccines in 11 southern states
Wastewat

Volume of injected waste water from Rocky Mountain Arsenal and number of earthquakes near Denver
Weather94

Weather casualties in 1994
z.test

Z-test
zsum.test

Summarized z-test
Test1

Grades on the first test in a statistics class
Thermal

Heat loss of thermal pane windows versus outside temperature
Twin

Intelligence test scores for identical twins in which one twin is given a drug
Inspect

Percent of vehicles passing inspection by type inspection station
Laminect

Median costs of laminectomies at hospitals across North Carolina in 1992
Lead

Lead levels in children's blood whose parents worked in a battery factory
Ligntmonth

Relationship between damage reports and deaths caused by lightning
Undergrad

Data set describing a sample of undergraduate students
Wheat

Price of a bushel of wheat versus the national weekly earnings of production workers
Windmill

Direct current produced by different wind velocities
ntester

Normality Tester
tsum.test

Summarized t-test
Puerto

Weekly incomes of a random sample of 50 Puerto Rican families in Miami
Quail

Plasma LDL levels in two groups of quail
Quality

Quality control test scores on two manufacturing processes
Retail

Length of employment versus gross sales for 10 employees of a large retail store
Lodge

Measured traffic at three prospective locations for a motor lodge
Mercury

Concentration of mercury in 25 lake trout
Metrent

Monthly rental costs in metro areas with 1 million or more persons
Nervous

Reaction effects of 4 drugs on 25 subjects with a nervous disorder
Ronbrown1

Oceanography data obtained at site 1 by scientist aboard the ship Ron Brown
Sat

SAT scores, percent taking exam and state funding per student by state for 1994, 1995 and 1999
Saving

Problem asset ration for savings and loan companies in California, New York, and Texas
Selfdefe

Self-confidence scores for 9 women before and after instructions on self-defense
Newsstand

Daily profits for 20 newsstands
Orioles

Salaries of members of the Baltimore Orioles baseball team
Oxytocin

Arterial blood pressure of 11 subjects before and after receiving oxytocin
Program

Effects of four different methods of programmed learning for statistics students
Senior

Reaction times of 30 senior citizens applying for drivers license renewals
Soccer

Weights of 25 soccer players
Social

Median income level for 25 social workers from North Carolina
Statelaw

Operating expenditures per resident for each of the state law enforcement agencies
Statisti

Test scores for two beginning statistics classes
Tablrock

Ozone concentrations at Mt. Mitchell, North Carolina
Teacher

Average teacher's salaries across the states in the 70s 80s and 90s
Psat

PSAT scores versus SAT scores
Rainks

Rainfall in an area of west central Kansas and four surrounding counties
Randd

Research and development expenditures and sales of a large company
Ronbrown2

Oceanography data obtained at site 2 by scientist aboard the ship Ron Brown
Tiaa

1999-2000 closing prices for TIAA-CREF stocks
Ticket

Time to complete an airline ticket reservation
Trucks

Miles per gallon for standard 4-wheel drive trucks manufactured by Chevrolet, Dodge and Ford
Tv

Percent of students that watch more than 6 hours of TV per day versus national math test scores
Vehicle

Fatality ratings for foreign and domestic vehicles
Verbal

Verbal test scores and number of library books checked out for 15 eighth graders
Window

Wind leakage for storm windows exposed to a 50 mph wind
Wins

Baseball team wins versus seven independent variables for National league teams in 1990
Rural

Social adjustment scores for a rural group and a city group of children
SIGN.test

Sign Test
SRS

Simple Random Sampling
Simpson

Grade point averages of men and women participating in various sports-an illustration of Simpson's paradox
Situp

Maximum number of situps by participants in an exercise class
Snore

Snoring versus heart disease
Snow

Concentration of microparticles in snowfields of Greenland and Antarctica
Spouse

Convictions in spouse murder cases by gender
Stable

Times of a 2-year old stallion on a one mile run
Subway

Time it takes a subway to travel from the airport to downtown
Sunspot

Wolfer sunspot numbers from 1700 through 2000
Toaster

Consumer Reports (Oct 94) rating of toaster ovens versus the cost
Tonsils

Size of tonsils collected from 1,398 children
Treatments

Illustrates analysis of variance for three treatment groups
Trees

Number of trees in 20 grids
Victoria

Number of sunspots versus mean annual level of Lake Victoria Nyanza from 1902 to 1921
Viscosit

Viscosity measurements of a substance on two different days
normarea

Normal Area
nsize

Required Sample Size