Answered step by step
Verified Expert Solution
Link Copied!

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 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?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL 10 High Performance Expert Techniques For Query Optimization High Availability And Efficient Database Maintenance

Authors: Ibrar Ahmed ,Gregory Smith ,Enrico Pirozzi

3rd Edition

1788474481, 978-1788474481

More Books

Students also viewed these Databases questions

Question

how does ipconfig compare to ipconfig / all

Answered: 1 week ago