QuestionQuestion

Let’s have a look at the Chatterjee-Price Attitude Data from the library (datasets) package. The dataset is a survey of clerical employees of a large financial organization. The data are aggregated from questionnaires of approximately 35 employees for each of 30 (randomly selected) departments. The numbers give the percent proportion of favourable responses to seven questions in each department. For more details, see ?attitude.
1- Load this data, and provide a statistical summary of the variables.
2- Pick one of the variables and describe what the summary statistics are telling you.
3- Create a subset of the data (privileges and learning)
4- Create a scatterplot of this subset.
5- Perform a k-means clustering with 2 clusters. Then redo the scatterplot in Step 4 coloring the dots based on the 2 clusters.
6- Perform the "elbow" method producing a graph indicating how many clusters are in the data. How many clusters do you see?
7- Redo the cluster analysis with this new number, and redo the scatterplot coloring the dots with the new clusters.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

?attitude
# 1- Load this data, and provide a statistical summary of the variables.
library(datasets)
data(attitude)

# Summary of the data
summary(attitude)
##      rating       complaints    privileges       learning   
## Min.   :40.00   Min.   :37.0   Min.   :30.00   Min.   :34.00
## 1st Qu.:58.75   1st Qu.:58.5   1st Qu.:45.00   1st Qu.:47.00
## Median :65.50   Median :65.0   Median :51.50   Median :56.50
## Mean   :64.63   Mean   :66.6   Mean   :53.13   Mean   :56.37
## 3rd Qu.:71.75   3rd Qu.:77.0   3rd Qu.:62.50   3rd Qu.:66.75
## Max.   :85.00   Max.   :90.0   Max.   :83.00   Max.   :75.00
##      raises         critical       advance   
## Min.   :43.00   Min.   :49.00   Min.   :25.00
## 1st Qu.:58.25   1st Qu.:69.25   1st Qu.:35.00
## Median :63.50   Median :77.50   Median :41.00
## Mean   :64.63   Mean   :74.77   Mean   :42.93
## 3rd Qu.:71.00   3rd Qu.:80.00   3rd Qu.:47.75
## Max.   :88.00   Max.   :92.00   Max.   :72.00
# 2- Pick one of the variables and describe what the summary statistics are telling you.

# Looking at raises
# we can see that the minimum raise that happened was 43 which is almost 20% less than average raise, and the maximum raise that happened was 88 which is 20% above average raise

# Plotting the boxplot
boxplot(attitude$raises)...

By purchasing this solution you'll be able to access the following files:
Solution.R and Solution.docx.

50% discount

Hours
Minutes
Seconds
$40.00 $20.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Statistics-R Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats