## Sampling and Assignment

### Description

A list of 100 random names generated by <a href="http://listofrandomnames.com" target="_blank">listofrandomnames.com</a>. The dataset includes 50 male and 50 female names. The dataset is used to illustrate simple random sampling and random assignment to treaments in an experimental design.

### Variables

A data frame with 100 observations on 2 variables

- Names = Name
- Gender = Gender

## Salaries for Professors

### Description

The 2008-09 nine-month academic salary for Assistant Professors, Associate Professors and Professors in a college in the U.S. The data were collected as part of the on-going effort of the college's administration to monitor salary differences between male and female faculty members. A data frame with 397 observations on the following 6 variables.

### Variables

- rank = a factor with levels AsstProf, AssocProf, and Prof
- discipline = a factor with levels A ('theoretical' departments) or B ('applied' departments)
- yrs.since.phd = years since PhD
- yrs.service = years of service
- sex = a factor with levels Female and Male
- salary = nine-month salary, in dollars

### Source

Fox J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition Sage.

## Shopping attitudes

### Description

20 consumers were asked to respond to six questions to determine their attitudes towards shopping.

### Variables

A data frame with 20 observations on 7 variable. The scores shown for variables v1-v6 indicate the level of agreement with the statement on a 7-point scale where 1 = strongly disagree and 7 = strongly agree.

- id = Respondent id
- v1 = "Shopping is fun"
- v2 = "Shopping is bad for your budget"
- v3 = "I combine shopping with eating out"
- v4 = "I try to get the best buys while shopping"
- v5 = "I don't care about shopping"
- v6 = "You can save a lot of money by comparing prices"

## Super heroes

### Variables

- name = super hero name
- alignment = good or bad character
- gender = male or female
- publisher = name of the comic publisher

<a href="http://stat545-ubc.github.io/bit001_dplyr-cheatsheet.html" target="_blank">Source</a>