top of page
Getting Started
 
Use the data file that you created in assignment #1. The data set should have the original variables with the names IV1, IV2 and DV, as well as the new variables that you created in assignment #1 (i.e. ID, R_IV1, R_IV2, TwoIVs and R_DV). If you made mistakes in assignment 1, you need to correct those mistakes before you work on assignment 2. If you do not correct the mistakes, you will not get the correct answers in assignment 2. 
 
The easiest way to ensure all your variables are there is to continue on from your script file from assignment 1, and save it as a new file.
 
Name your file as follows. Last name, First and middle initial (in caps), underscore and assignment2. For example, if your name is Jane Ann Smith your file would be SmithJA_assignment2.

Click here for the rubrics for this lab.


Assignment 2 Instructions 

a) Create a box plot for the variable R_IV1. Give the box plot a main title that follows the naming convention, Last name's box plot. For example, my title would be Corwyn's box plot.  Label the x axis, "x axis" and name the y axis, "y axis".

​b) Create a histogram with at least 10 bins for R_IV2. Title your histogram "Histogram of TwoIVs" and label your x axis "x axis" and the y axis "y axis."​

c) Create a frequency table for the variable R_IV2.  The frequency table should include the number of occurrences and cumulative percent in ascending order.​

d) Calculate the sum of all (X-Xbar)^2 values for R_IV1, where X = the R_IV1 values and Xbar is the mean of R_IV1. Remember that ^2 is a symbol for squared. So you will create a variable that has the values of X-Xbar and then you will create a variable that squares the X-Xbar values. Then you will sum all of the values in the last step (see videos).​

How to submit your assignment 

Send your R script file that produced your answers to a, b, c and d to khu@ualr.edu and lxcarl@ualr.edu. It is necessary to send your R script file to us because Wix will not accept R script files.
 
Next, copy the contents of your R script file and paste it into a Word document and submit that Word document through the Wix submission page for assignment #2. 
 
This assignment is worth 10 points. 
bottom of page