Question: Please provide R code along with explanations for the following exercise: The data household (R package HSAUR2) are part of a data set collected from

Please provide R code along with explanations for the following exercise:

The data household (R package "HSAUR2") are part of a data set collected from a survey of household expenditure and give the expenditure of 20 single men and 20 single women on four commodity groups. The units of expenditure are Hong Kong dollars, and the four commodity groups are

housing: housing, including fuel and light,

food: foodstuffs, including alcohol and tobacco,

goods: other goods, including clothing, footwear and durable goods,

services: services including transport vehicles.

The aim of the survey was to investigate how the division of household expenditure between the four commodity groups depends on the total expenditure and to find out whether this relationship differs for men and women. Use appropriate graphical methods to answer these questions and state your conclusions.

Use whichever kinds of graph will best display these relationships-

Maybe bar charts or scatter plots or box plots

But we need a graph representing the relationship between the expenditures on each type compared to the total expenditures, so probably need to take sums and means of things and use those datas to put in charts

and then we need a graph representing the relationship between female expenditures and male expenditures so compare the two of them, see if they have any differences

thank you

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!