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
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