Question

In: Statistics and Probability

In a study, sixteen pregnancy women were selected to compare the plasma ascorbic acid levels for...

In a study, sixteen pregnancy women were selected to compare the plasma ascorbic acid levels for smokers versus nonsmokers. Prior to the collection of 20 ml of blood, the participants were told to avoid breakfast, forgo their vitamin supplements, and avoid foods high in ascorbic acid content. From the blood samples, the following plasma ascorbic acid values were determined, in milligrams per 100 milliliters:

Plasma Ascorbic Acid Values

Nonsmokers Smokers

0.97 0.48

0.72 0.71

1 0.98

0.81 0.68

0.62 1.18

1.32 1.36

1.24 0.78

0.99 1.64

Please write the entire R code to check the assumptions necessary and to perform the test.
(1) Do the data provide sufficient evidence to indicate that smokers have a lower mean plasma ascorbic

acid levels than the nonsmokers.
(2) Perform one-way ANOV A for the plasma ascorbic acid levels of smokers and nonsmokers, is there

sufficient evidence to conclude that there is a difference between plasma ascorbic acid levels of smokers and nonsmokers?

Solutions

Expert Solution

The R code is pasted below.

# DATA IS ENTERED AND ARRANGED
x = c(0.97,0.72,1,0.81,0.62,1.32,1.24,0.99,0.48,0.71,0.98,0.68,1.18,1.36,0.78,1.64)
y = c(rep("Nonsmokers",8),rep("Smokers",8))
data = data.frame(Acid.Values = x,Category = y)
data

# IN QUESTION 1, WE HAVE TO PERFORM A RIGHT-TAILED, 2 INDEPENDENT SAMPLES T-TEST
# SUBSETTING THE DATA ACCORDINGLY
nonsmokers = unlist(subset(data,Category == "Nonsmokers",select=Acid.Values),use.names=F)
smokers = unlist(subset(data,Category == "Smokers",select=Acid.Values),use.names=F)
t.test(nonsmokers,smokers,alternative = "greater",var.equal = T)
# SINCE P-VALUE IS GREATER THAN ALPHA = 0.05, WE FAIL TO REJECT H0.
# WE CONCLUDE THAT THERE IS NO SUFFICIENT EVIDENCE TO SUGGEST THAT SMOKERS HAVE A LOWER MEAN PLASMA ASCORBIC ACID LEVELS THAN NONSMOKERS.

# IN QUESTION 2, WE PERFORM THE ONE-WAY ANOVA
res.aov = aov(Acid.Values ~ Category,data)
summary(res.aov)
# SINCE P-VALUE IS GREATER THAN ALPHA = 0.05, WE FAIL TO REJECT H0.
# WE CONCLUDE THAT THERE IS NO SUFFICIENT EVIDENCE TO SUGGEST THAT THERE IS A DIFFERENCE BETWEEN THE PLASMA ASCORBIC ACID LEVELS OF SMOKERS AND NONSMOKERS.


Related Solutions

How do we compare the mass of the ascorbic acid in vitamin c pill with the...
How do we compare the mass of the ascorbic acid in vitamin c pill with the advertised value statistically in excel? What test do we use. Explain it in detail. You can use random numbers to make the explanation more clear.
When would estrogen and progesterone levels be very high in women? during pregnancy a few days...
When would estrogen and progesterone levels be very high in women? during pregnancy a few days after childbirth they will remain the same both during pregnancy and after childbirth
In a survey of 170 randomly selected Ohioans, sixteen said that they were left-handed. a. Calculate...
In a survey of 170 randomly selected Ohioans, sixteen said that they were left-handed. a. Calculate the percentage of the people surveyed who were left-handed, rounded to the nearest hundredth of a percent. b. Estimate the margin of error, assuming a 95% confidence level. Round to the nearest hundredth of a percent. c. Determine a 95% confidence interval for the relevant population percentage. d. Write a confidence statement corresponding to your answer in part c. e. An observer could look...
A study was conducted to investigate potential risk factors for ectopic pregnancy. Of the 279 women...
A study was conducted to investigate potential risk factors for ectopic pregnancy. Of the 279 women who had experienced ectopic pregnancy, 28 had suffered from pelvic inflammatory disease. Of the 279 women who had not experienced ectopic pregnancy, 6 had suffered from pelvic inflammatory disease. Construct a 2x2 contingency table for these data. Estimate the relative odds of suffering ectopic pregnancy for women who have had pelvic inflammatory disease versus women who have not. Interpret your result. Construct a 95%...
The results of a blinded study assessing the use of plasma D-dimer levels for diagnosing deep...
The results of a blinded study assessing the use of plasma D-dimer levels for diagnosing deep venous thrombosis (DVT) in patients hospitalized for stroke rehabilitation reported increased accuracy over the standard procedure involving ultrasound. To test the claims of this research team, an independent researcher conducted a study to determine if there was a difference in the accuracy of diagnosis for DVT between the two methods. The data in the table below summarize the findings of this study. diagnostic test:...
A study was conducted to compare the effect of three levels of digitalis on the level...
A study was conducted to compare the effect of three levels of digitalis on the level of calcium in the heart muscle of dogs. A description of the actual experimental procedure is omitted, but it is sufficient to note that the general level of calcium uptake varies from one animal to another so that comparison of digitalis levels (treatments) had to be blocked on heart muscles. That is, the heart muscle of a dog was regarded as a block, and...
A recent study examined the effect of diet cola consumption on calcium levels in women. A...
A recent study examined the effect of diet cola consumption on calcium levels in women. A sample of 16 healthy women aged 18 – 40 were randomly assigned to drink 24 ounces of either diet cola or water. Their urine was collected for three hours after ingestion of the beverage and calcium excretion (in mg) was measured. The researchers were investigating whether diet cola leaches calcium out of the system, which would increase the amount of calcium in the urine...
As part of a study of natural variation in blood chemistry, serum potassium concentrations were measured in 84 randomly selected healthy women
  As part of a study of natural variation in blood chemistry, serum potassium concentrations were measured in 84 randomly selected healthy women. The sample mean concentration was 4.36 mEq/l, and the sample standard deviation was 0.42 mEq/l. (a) Find the lower bound for the 95% confidence interval for the true serum potassium concentrate in healthy women. (b) Find the upper bound for the 95% confidence interval for the true serum potassium concentrate in healthy women. (c) Interpret your confidence...
In case- control study, 185 women with endometriosis and 370 women without endometriosis were analyzed. The...
In case- control study, 185 women with endometriosis and 370 women without endometriosis were analyzed. The par- ticipants’ mean age was 35.21 years (SD: 7.09) in the case group and 35.28 years (SD: 7.03) in the control group. The two groups significantly were differed regarding the level of education; the percentage of participants with academic degrees in the case group was twice as high as those in the control group (P<0.001). Moreover, 32 (17.3%) women of the case group and...
A study was carried out to determine the number of women using folic acid supplements in...
A study was carried out to determine the number of women using folic acid supplements in early pregnancy. All women attending a public or private clinic in Ohio were invited to participate and 28 women accepted. Based on previous studies, we know that typically 62% of pregnant women take folic acid supplements during early pregnancy. a) What is the probability that exactly 25 women take a folic acid supplement during early pregnancy? (Use formula/show work, NOT binompdf or binomcdf.) b)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT