Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use R code thank you!! I'm a bit urgent for this so need your help Initialize the city of Boston earnings dataset as shown

please use R code thank you!! I'm a bit urgent for this so need your help

Initialize the city of Boston earnings dataset as shown below:

boston <- read.csv( "https://people.bu.edu/kalathur/datasets/bostonCityEarnings.csv", colClasses = c("character", "character", "character", "integer", "character"))

Generate a subset of the dataset from Boston earnings dataset with only the top 5 departments based on the number of employees working in that department. The top 5 departments should be computed using R code. Then, use %in% operator to create the required subset.

Use a sample size of 50 for each of the following.

a) Show the sample drawn using simple random sampling without replacement.

Show the frequencies for the selected departments.

Show the percentages of these with respect to sample size.

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

Managerial Economics and Business Strategy

Authors: Michael R. baye

7th Edition

978-0073375960, 71267441, 73375969, 978-0071267441

More Books

Students also viewed these Mathematics questions

Question

what is the signifcance of footprinting to hackers

Answered: 1 week ago