Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Physicians’ Reactions (PR) case study 27.(PR) What is the mean expected time spe

ID: 3299542 • Letter: P

Question

Physicians’ Reactions (PR) case study

27.(PR) What is the mean expected time spent for the average-weight patients?

What is the mean expected time spent for the overweight patients?

28.(PR) What is the difference in means between the groups? By approximately

how many standard deviations do the means differ?

Descriptions of Variables

Variable

Description

Patient weight

1 = average weight, 2 = overweight

Time

represents how long the doctors said they would spend with the patient

WEIGHT     Time

Variable

Description

Patient weight

1 = average weight, 2 = overweight

Time

represents how long the doctors said they would spend with the patient

Explanation / Answer

We can do this quickly in the open source statistical package R , the complete R snippet is as follows

# read the data into R dataframe
data.df<- read.csv("C:\Users\586645\Downloads\Chegg\weighttime.csv",header=TRUE)
str(data.df)

data.df$WEIGHT <- as.factor(data.df$WEIGHT)

## mean of the 2 groups
tapply(data.df$TIME,data.df$WEIGHT, mean)

The means for the 2 groups are

1 2
31.36364 24.73684

## difference in the means is thus 31.36 - 24.73 = 6.63

## sd of the whole data for time is

sd(data.df$TIME)

[1] 10.23762

so number of standard deviations is

6.63/10.23 = 0.64