Question
Please use R Programming to answer follow questions: 4. A consumer organization studied the effect of age of automobile owner on size of cash offer
Please use R Programming to answer follow questions:
4. A consumer organization studied the effect of age of automobile owner on size of cash offer for a used
car by utilizing 12 persons in each of three age groups (1=young, 2=middle, 3=elderly) who acted as
the owner of a used car. A medium price, six-year-old car was selected for th experiment, and the
owners solicited cash offers for this car from 36 dealers selected at random from the dealers in the
region. Randomization was used to assign the dealers to the owners. The offers (in hundred dollars)
are in the file UsedCar.csv.
a. Import the data from the UsedCar.csv, and display a few rows.
b. Display the levels of the explanatory factor Age Group. Hint: You might need to use factor.
c. Change the levels of the explanatory factor Age Group to Young, Middle, Elderly, instead of
1, 2, 3.
Hint: levels=c("Young", "Middle", "Elderly")
d. Give a comparative boxplot (with an overlay of a jitter plot), to visualize the distribution of the offer
according to age group.
e. Give a table a group statistics that includes the mean and the standard deviation of the offer according
to age group. Round the statistics at 3 digits.
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