Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 and The data
set consists of living alumni and contains their contributions for the years In
addition, the data set includes several other variables such as gender, marital status, college major,
subsequent graduate work, and attendance at fundraising 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.
librarylattice
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.csvC:UsersspDocumentsNJITTeachingcontributioncsv
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
and Compute the total donation amount for each alumni and store it into a new
variable don$TGiving What is the mean and standarddeviation of the total donation?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started