10.07.2015 Views

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Univariate data 392.5 Web developers need to know which browsers people use, as they need to supportmany different plat<strong>for</strong>ms. Table 2.2 contains usage percentages based on an analysis of aUnited States Geological Society web server.Table 2.2 Web browser statisticsBrowser statisticsInternet Explorer 86%Gecko-based (Netscape, Mozilla) 4%Netscape Navigator 4 5%Opera 1%unidentified 4%source http://www.upsdell.com/BrowserNews/stat.htmMake a bar chart, a pie chart, and a dot chart of this data.2.6 According to the New York Times, the top-selling MP3 players <strong>for</strong> August 2003are as shown in Table 2.3 with their market shares. Assume the total market share is $22million.1. What percent is “other”?2. Find the dollar amount (not the percentage amount) <strong>for</strong> each company.3. Make a bar chart, dot chart, and pie chart of the data, including “other.” Which chartshows the relationship best?4. Comment on how out-of-date this data seems.Table 2.3 Sales of MP3 players. Total $22 millionMP3 playersApple 18%RCA 15%Rio 14.4%iRiver 13.5%Creative Labs 6.2%2.7 Make a dot chart of the mpg variable in the mtcars data set. Specify the argumentlabels=using the command rownames(mtcars), which returns the names of each row ofthe data frame.2.8 The data set npdb (<strong>Using</strong>R) contains in<strong>for</strong>mation on malpractice awards in theUnited States. Attach the data set and make a table of the state variable. Which state hadthe most awards? (<strong>Using</strong> sort () on your table is useful here.)2.9 For the malpractice-award data set npdb (<strong>Using</strong>R), the variable ID is anidentification number unique to a doctor but not traceable back to the doctor. It allows alook at a doctor’s malpractice record without sacrificing anonymity.The commands

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!