Homework 2 - Part 2 - Homework 2 \u2013 Part2 Q1 For part A and B PlantGrowth is a dataset in R that contains crop weights of a control group and two

# Homework 2 - Part 2 - Homework 2 u2013 Part2 Q1 For...

• 7
• 97% (31) 30 out of 31 people found this document helpful

This preview shows page 1 - 4 out of 7 pages.

Homework 2 – Part2 Q1.)For part A and B PlantGrowth is a dataset in R that contains crop weights of a control group and two treatment groups. #Code to Get Datalibrary(datasets)data(PlantGrowth)Perform the following operations: (i) Create two separate datasets, one with datapoints of treatment 1 group along with control group and other with datapoints of treatment 2 group with the control group. A)Now compute the difference estimator for treatment 1 and treatment 2 datasets that were created, in comparison with the control group?
B)From the PlantGrowth dataset what is the average crop weight of the control group, treatment 1 group, and treatment 2 group, comment on which group has the highest average?
Page Break Use the following for C,D and EThe Minimum Wage Law protects the right of workers to get a minimum wage. Consider a scenario where the law of minimum wage was changed just in the state of New Jersey (i.e., law has not been changed in other states). We want to use the data from company XYZ to observe the difference in hours worked by full time employees in New Jersey before and after the law was changed. Note: The variable 'State’ indicates the citizenship of the worker, i.e., State = New Jersey ,the worker is from NJ, else worker is not from NJ (is from Philadelphia). Note: The variable fte contains the number of hours worked by an employee. Note: The variable d indicates whether or not the data was collected before or after the law changed, i.e. d = 1 indicates the data was collected after the law was changed, and d = 0 indicates the data was collected before the law was changed.