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.

Bivariate data 101produce a scatterplot of the variable time modeled by temp. The pch=cens argumentmarks points that were censored with a square; otherwise a circle is used. Make thescatterplot and answer the following:1. How many different temperatures were used in the experiment?2. Does the data look to be a candidate <strong>for</strong> a linear model? (You might want toconsider why the data point (150,8000) is marked with a square.)3. Fit a linear model. What are the coefficients?4. Use the linear model to make a prediction <strong>for</strong> the accelerated lifetime of a motor runat a temperature of 210°C.3.33 The data set mw.ages (<strong>Using</strong>R) contains census 2000 data on the age distributionof residents of Maplewood, New Jersey. The data is broken down by male and female.Attach the data set and make a plot of the Male and Female variables added together.Connect the dots using the argument type="l". For example, with the commandplot(1:103,Male + Female,type="l").Next, layer on top two trend lines, one <strong>for</strong> male and one <strong>for</strong> female, using thesupsmu() function. What age group is missing from this town?

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

Saved successfully!

Ooh no, something went wrong!