420Hw02 - STAT 420 Homework #2 (10 points) (due Friday,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 420 Fall 2008 Homework #2 (10 points) (due Friday, September 12, by 3:00 p.m.) 1. The friendly folks at the Internal Revenue Service (IRS) are always looking for ways to improve the wording and format of its tax return forms. Three new forms have been developed recently. To determine which, if any, are superior to current form, 120 individuals were asked to participate in an experiment. Each of the three new forms and the currently used form were filled out by 30 different people. The amount of time (in minutes) taken by each person to complete the task was recorded and stored in columns 1 through 4 (forms Form1 through Form4, respectively) in file Hw02_1.csv. The data set is available at http://www.stat.uiuc.edu/~stepanov/Hw02_1.csv To create a data frame in R, use Hw02_1 <- read.table("http://www.stat.uiuc.edu/~stepanov/Hw02_1.csv", sep=",", header=T) sep="," indicates that the data in the data file are separated by a comma, header=T indicates that the first line of the data file contains the names for the variables (as opposed to header=F ) You can then access individual variables in the data frame Hw02_1 by using Hw02_1$Form1 , Hw02_1$Form2 , Hw02_1$Form3 , and Hw02_1$Form4 . For example, to combine the four 30-component data sets (one for each form) into one 120-component data set, use Time <- c(Hw02_1$Form1, Hw02_1$Form2, Hw02_1$Form3, Hw02_1$Form4)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

420Hw02 - STAT 420 Homework #2 (10 points) (due Friday,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online