Question: Hi, could someone please help me to code these questions using R-studio, I just need the required lines of code to get the answers to

Hi, could someone please help me to code these questions using R-studio, I just need the required lines of code to get the answers to these questions using the following dataset:

install.packages(``carData'')

library(carData)

data(``WeightLoss'')

WeightLoss$your_name = WeightLoss$

Answer the following questions about the WeightLoss data set:

a. Form a 90% confidence interval for the difference in self esteem (in month 1) of the Control and the Diet & Exercise group. (Make sure to include a concluding sentence). Include any code you used at the end of your solution.

b. Test if the mean self esteem in month 1 is higher for the Diet & Exercise group than the mean weight loss of the Control group. (Make sure to include the null and alternative hypothesis, test statistic, critical value, p-value,decision (ie, reject/FTR H0) and a concluding sentence). Include any code you used at the end of your solution. Assume alpha= 0.05

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 Mathematics Questions!