Question

use r code please

In two wards for elderly patients in a local hospital the following levels of hemoglobin (grams per liter) were found for a s

0 0
Add a comment Improve this question Transcribed image text
Answer #1

2A)

ward_a <- c(12.2, 11.1, 14.0, 11.3, 10.8, 12.5, 12.2, 11.9, 13.6, 12.7, 13.4, 13.7)          
ward_b <- c(11.9, 10.7, 12.3, 13.9, 11.1, 11.2, 13.3, 11.4, 12.0, 11.1)
hemoglobin <- data.frame(hemo_level = c(ward_a, ward_b), ward = c(rep("Ward A", 12), rep("Ward B", 10)))
boxplot(hemo_level~ward , data =hemoglobin )

寸 Ward A Ward B

YOU CAN also use

ggplot(hemoglobin, aes(y = hemo_level, x= ward)) + geom_boxplot(aes(col = ward)) + theme_minimal(base_size = 15) + geom_point()


14 13 а» ward а» Ward A Ward B а» 12 Ward A Ward B ward

2B)

Assumtion 1: The observations are independent of one another.
Assumption 2: The data should be approximately normally distributed.

Please rate

Add a comment
Know the answer?
Add Answer to:
In two wards for elderly patients in a local hospital the following levels of hemoglobin (grams p...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Suppose you want to test to see if there is a difference in steady-state hemoglobin levels...

    Suppose you want to test to see if there is a difference in steady-state hemoglobin levels (measured in gdL) for patients with different types of sickle-cell disease. The two diseases for which you will study are: HB SS - Commonly referred to as "sickle cell anemia" (I will abbreviate this as X) HB SC - Commonly referred to as "sickle cell disease" (I will abbreviate this as Y) Although both have their complications, HB SS is referred to as the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT