case0102 | R Documentation |
The data are the beginning salaries for all 32 male and all 61 female skilled, entry–level clerical employees hired by a bank between 1969 and 1977.
case0102
A data frame with 93 observations on the following 2 variables.
starting salaries (in US\$
)
sex of the clerical employee, with levels "Female"
and "Male"
Ramsey, F.L. and Schafer, D.W. (2013). The Statistical Sleuth: A Course in Methods of Data Analysis (3rd ed), Cengage Learning.
Roberts, H.V. (1979). Harris Trust and Savings Bank: An Analysis of Employee Compensation, Report 7946, Center for Mathematical Studies in Business and Economics, University of Chicago Graduate School of Business.
case1202
attach(case0102)
str(case0102)
boxplot(Salary ~ Sex,
ylab= "Starting Salary (U.S. Dollars)",
names=c("61 Females","32 Males"),
main= "Harris Bank Entry Level Clerical Workers, 1969-1971")
hist(Salary[Sex=="Female"])
dev.new()
hist(Salary[Sex=="Male"])
t.test(Salary ~ Sex, var.equal=TRUE) # Equal var. version; 2-sided by default
t.test(Salary ~ Sex, var.equal=TRUE,
alternative = "less") # 1-sided; that group 1 (females) mean is less
detach(case0102)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.