Homework-1 - of the two cases. Include these two plots in...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 1 1) Read Chapter 1 (all) and Chapter 2 (only sections 2.1, 2.2 and 2.3). 2) Do Chapter 2 textbook problem #2 on page 89. 3) This question uses the data here . Download it to your computer. a) Read in the data in R using data<-read.csv ("myfirstdata.csv",header=FALSE). Note, you first need to specify your working directory using the setwd() command. Determine whether each of the two attributes (columns) is treated as qualitative (categorical) or quantitative (numeric) using R. Explain how you can tell using R. b) Use the command plot() in R to make a plot for each column by entering plot(data[,1]) and plot(data[,2]). Explain exactly what is being plotted in each
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of the two cases. Include these two plots in your homework. c) Use the R functions mean(), max(), var() and quantile(,.25) to compute the mean, maximum, variance and 1st quartile respectively of the data in the first column. Show your R code and the resulting values. When you are done, please e-mail your solution to stats202@gmail.com. If you are unable to e-mail your solutions for some reason, please turn them in before class on Wednesday June 29, 2011. Sign in Recent Site Activity Terms Report Abuse Print page | Powered by Google Sites Page 1 of 1 Homework 1 - Stats 202 7/17/2011 http://sites.google.com/site/stats202/homework-1...
View Full Document

Ask a homework question - tutors are online