Rcmdr - Assignment #2 - Due Friday, Mar 13 - Hard copy submissions will be accepted only in class on that day. Any early or late submissions must be submitted in Blackboard (you can also submit it in Blackboard on the day it is due.)

 

1.   a. Open R

b. Load Rcmdr either by using the “Load package” tab along the top (only if you are using a PC) or by typing library(Rcmdr) at the > prompt.

 

2.   Data > Active data > Select Active data - then highlight mpg and then click OK

Note: If you did the previous assignment on one of the machines in the lab you will need to import the data from the spreadsheet again - see first assignment for instructions

 

3.   a. Statistics > Numerical Summaries - then highlight all variables except for ObsNumber and year

b. Cut and paste the output into a word processing document. Change the font type to Courier so the columns line up.

c. Comment on how the summary data for the unadjusted MPGs compared to the adjusted MPGs.

 

4.   Statistics > Numerical Summaries - then highlight citympg and then click on Summarize by Groups and highlight class. Then click OK

 

5.   a. Graphs > Boxplots - then highlight citympg, check the box which says Identify outliers with mouse then click on Plot by Groups and highlight airaspiration. Then click OK and OK.

b. Left click on the mouse on the boxplot to identify the outliers. Stop identifying by right clicking the mouse.

c. Copy the boxplot to your word processing file.

 

6.   a. Using the toolbar under the menu bar (i.e. the second row down at the top) View dataset and look up the outliers.

      b. In the word processing file report report high and/or low outliers for each group.

 

11. Graphs > Plot Means > select airaspiration as the Factor and citympg as the Response variable, then select Standard deviations under Error bars. Cut and paste this plot into your word processing file.

 

12. Graphs > Pie Chart > select airaspiration. Cut and paste this plot into your word processing file.

 

13. a. Graphs > Scatterplot > select citympg as the x-variable and hwympg as the y-variable.Then click OK Cut and paste this plot into your word processing file.

b. Graphs > Scatterplot > select citympg as the x-variable and highwaympg as the y-variable. Cut and paste this plot into your word processing file.then click on Plot by Groups, and highlight airaspiration. Then click OK and OK. Cut and paste this plot into your word processing file.