Question: This assignment will work with the dataset contribution.csv , which is uploaded under the Week 2 module on Canvas. This dataset summarizes the contributions received

This assignment will work with the dataset contribution.csv, which is uploaded under the
Week 2 module on Canvas. This dataset summarizes the contributions received by a selective
private liberal arts college in the Midwest. The college has a large endowment and, as all private
colleges do, keeps detailed records on alumni donations. Here we analyze the contributions of five
graduating classes (the cohorts who have graduated in 1957,1967,1977,1987, and 1997). The data
set consists of n=1230 living alumni and contains their contributions for the years 2000-2004. In
addition, the data set includes several other variables such as gender, marital status, college major,
subsequent graduate work, and attendance at fund-raising events, all variables that may play an
important role in assessing the success of future capital campaigns.
Call the necessary libraries by envoking the following commands.
library(lattice)
library( ellipse)
Read the file contribution.csv into the variable don by using the read.csv function. An
example using the instructor's working directory is shown below. You will have to change the
directory to your own location in order to successfully read the file.
don - read.csv("C:/Users/sp2957/Documents/NJIT/Teaching/contribution.csv")
Use the following command to take a look at the dataset. List all the names of the variables
in the dataset.
,
Using the table function, create a table summarizing the frequency of the data with respect
to the variable Class.Year. Use this table and the barchart function to create a vertical
barchart showing the number of alumni with respect to graduating years.
The current dataset contains information on alumni donations for years 1957,1967,1977,
1987 and 1997. Compute the total donation amount for each alumni and store it into a new
variable (don$TGiving). What is the mean and standard-deviation of the total donation?
 This assignment will work with the dataset contribution.csv, which is uploaded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!