Question

In: Statistics and Probability

Cotinine level(ng/ml) was measured in the meconium of newborns of mothers who were active, passive or...

Cotinine level(ng/ml) was measured in the meconium of newborns of mothers who were active, passive or nonsmokers. There were consecutive women arriving for delivery at one hospital. The alkaloid, cotinine is the main metabolite of nicotine. with a half-life of around 20 hours and detectable for several days after exposure, it is a biomarker for exposure to tobacco smoke.

   Cotinine level (ng/ml)

Active Smokers (490, 418, 405, 328, 700, 292, 295, 272, 240, 232)

Passive Smokers ( 254, 219, 287, 257, 271, 282, 148, 273, 350, 293)

Nonsmoker ( 158, 163, 153, 207, 211, 159, 199, 187, 200, 213)

  

  

1. Create your own Reditol file to store, analyze adn graph this data set as called for in the questions below. Save this R program file as smoking Elba.R if your name is Elba, else use your name. I should be able to execute your code to produce the answers and the graph you submitted for this problem.

  

  

Descriptive statistics for Cotinine level for these 3 smoking groups. Round-off to appropriate levels.

   smoking group N Mean SD 95% CI Mean (by t-distribution)

   Active Smokers 10 ______ _______ _____________

   Passive Smokers 10 ________ _______ __________________

   Nonsmokers 10 ________ _________ __________________

   2. Perform one-way Anova. Report p-value to ful resolution; round-off the other statistics to appropriate levels.

   source df SS MS F P

   Age group 2 ______ _______ _______ _____

   Unexplained 27 ______ ________ ______ ______

   3. Perform Kruskal-Wallis test.

  

   P= ______

   4. R-square : Among groups= _______%

   5. Cohen's D= ___________( standardized effect size)

   6. using plotmeans() in the gplots package, construct a publication quality graph of the means with their 95% confidence inervals calculated using the t-distribution.

   7. In several sentences suitable for scientific journal, express the results of the one-way Anova and associated analysis including insight from effect sizes, CI, multiple comparisons and graphical visualization.

Solutions

Expert Solution


n=10
AS<-c(490,418,405,328,700,292,295,272,240,232)
PS<-c(254,219,287,257,271,282,148,273,350,232)
NS<-c(158,163,153,207,211,159,199,187,200,213)

M<-c(mean(AS),mean(PS),mean(NS))

barplot(M,names.arg=c("Active Smokers","Passive Smokers","nonsmokers"),ylim=c(0,400),main=c("Barplot of Mean level of biomarkers for three groups"))

m_as<-mean(AS)
sd_as<-sd(AS)
a=qt(0.975,df=n-1)*sd_as/sqrt(n)

CI_l_as=m_as-a
CI_u_as=m_as+a

m_ps<-mean(PS)
sd_ps<-sd(PS)
b=qt(0.975,df=n-1)*sd_ps/sqrt(n)

CI_l_ps=m_ps-b
CI_u_ps=m_ps+b

m_ns<-mean(NS)
sd_ns<-sd(NS)
c=qt(0.975,df=n-1)*sd_ns/sqrt(n)

CI_l_ns=m_ns-c
CI_u_ns=m_ns+c

########## ANOVA ######

data<-c(AS,PS,NS)
x<-as.factor(c(rep("AS",10),rep("PS",10),rep("NS",10)))

model<-aov(data~x)
summary(model)

######### Kruskal-Wallis test ########3

kruskal.test(data~x)

###### R^2 ##########

summary(lm(data~x))

###### Cohen's D #########

library(effsize)
cohen.d(AS,PS)
cohen.d(AS,NS)
cohen.d(PS,NS)

####### plotmeans() ########

library(gplots)

plotmeans(data~x,mean.labels=TRUE,main=c("Meanplot of the data along with 95% CI"))


######### Output #######

## Active smokers
> m_as
[1] 367.2
> sd_as
[1] 143.6708
> CI_l_as
[1] 264.4241
> CI_u_as
[1] 469.9759

## Passive smokers

> m_ps
[1] 257.3
> sd_ps
[1] 52.26439
> CI_l_ps
[1] 219.9123
> CI_u_ps
[1] 294.6877

## Non-smokers

> m_ns
[1] 185
> sd_ns
[1] 24.22579
> CI_l_ns
[1] 167.6699
> CI_u_ns
[1] 202.3301

### ANOVA table

> summary(model)
Df Sum Sq Mean Sq F value Pr(>F)   
x 2 168340 84170 10.54 0.000414 ***
Residuals 27 215638 7987


### Kruskal-Wallis test

Kruskal-Wallis chi-squared = 18.5777, df = 2, p-value = 9.245e-05

### R-square

Multiple R-squared: 0.4384

## Cohen's D

> cohen.d(AS,PS)
Cohen's d

d estimate: 1.016616 (large)
95 percent confidence interval:
inf sup
-0.04246702 2.07569838

> cohen.d(AS,NS)
Cohen's d

d estimate: 1.768508 (large)
95 percent confidence interval:
inf sup
0.5823635 2.9546523

> cohen.d(PS,NS)
Cohen's d

d estimate: 1.774947 (large)
95 percent confidence interval:
inf sup
0.5874927 2.9624005

### Interpretation

The mean levels for the three factors are significanly different among themselves
at very high significance level. The mean as well as the 95% CI for mean is lowest
for NS, then PS and AS is much more high value than other two groups.


Related Solutions

Heart rates for newborns born in one of two hospitals were measured to determine whether birth...
Heart rates for newborns born in one of two hospitals were measured to determine whether birth outcomes are comparable at the two locations. Assume the hospitals are independent. Relationship between heart rate and hospital Hospital Mean heart rate (bpm) SD n Riverside Methodist 127 11 216 NRV General 133 12 153 a) Test for a significant difference between mean heart rate in the two hospitals. Remember, as always, to give hypotheses, a p-value, and any other necessary information. Choose an...
Two recent papers were published in JAMA on infants born to mothers who were infected with...
Two recent papers were published in JAMA on infants born to mothers who were infected with SARS-CoV-2. All of the available evidence suggested that the babies were not infected with the virus at the time of birth. Analysis of the babies' blood soon after birth showed that they all had high levels of IgG against SARS-CoV-2 and about half of them also had anti-SARS-CoV-2 IgM. Which of the following best explains this observation? Group of answer choices: A.The presence of...
Lead (Pb) concentrations were measured in the leachate from six sampling wells surrounding an active landfill....
Lead (Pb) concentrations were measured in the leachate from six sampling wells surrounding an active landfill. The landfill was closed and PB concentrations were measured one year later from the same wells. The results appear in the table below. Test the null hypothesis of no change in Pb concentration at the 5% level of significance. Before After 1.1 7.3 6.8 6.0 5.2 5.4 8.3 7.6 7.0 6.5 7.9 7.3
The impurity level (in ppm) is routinely measured in a chemical product. The following data were...
The impurity level (in ppm) is routinely measured in a chemical product. The following data were observed in a recent test: 2.4          2.6          1.9          1.6          1.9          2.6          1.9          2.4          2.0          2.5          2.6          2.3          2.0          1.9          1.5          1.7          2.0          1.9          2.3          1.9          2.4          1.8          2.6          2.6          You need to test if the true mean impurity level is lesser than 2.5 ppm. What is the type of statistical test procedure that should be used to test the hypotheses? Explain.    Construct a...
Exactly 1.00-mL aliquots of a solution containing phenobarbital were measured into 50.00-mL volumetric flasks and made...
Exactly 1.00-mL aliquots of a solution containing phenobarbital were measured into 50.00-mL volumetric flasks and made basic with KOH. The following volumes of a standard solution of phenobarbital containing 25 ppm of phenobarbital were then introduced into each flask and the mixture was diluted to volume: 0.00, 1.00, 2.00, 3.00, and 4.00 mL. The fluorescence of each of these solutions was measured with a fluorometer, which gave values of 33.6, 40.6, 47.6, 54.6, and 61.6, respectively. What is the concentration...
1. What demographic variables were measured at the nominal level of measurement in the Oh et...
1. What demographic variables were measured at the nominal level of measurement in the Oh et al. (2014) study? Provide a rationale for your answer. 2. What statistics were calculated to describe body mass index (BMI) in this study? Were these appropriate? Provide a rationale for your answer. 3. Were the distributions of scores for BMI similar for the intervention and control groups? Provide a rationale for your answer. 4. Was there a signifi cant difference in BMI between the...
Researchers measured the cholesterol levels in mg per 100 mL for 50 participants. The participants were...
Researchers measured the cholesterol levels in mg per 100 mL for 50 participants. The participants were randomly selected from two age groups: under 50 years, or 50+ years. 1. What is the variable of interest being measured? 2. What type of sampling method is being used here? 3. Are there any possible confounding variables, or other sources of variability? The 50 participants are asked to change their diet to measure the effect it may have on lowering cholesterol levels. The...
Test the hypothesis (at the .05 level of significance) that individuals who were bullied are more...
Test the hypothesis (at the .05 level of significance) that individuals who were bullied are more likely to bully others. Test the hypothesis (at the .05 level of significance) that individuals who were bullied committed more bullying than those who were not bullied ID of Respondent #of Friends who Bully Respondent was a Bully Victim (0=No, 1=Yes) Gender (0=Female, 1=Male) # of times Respondent Bullied Others 1 2 1 1 5 2 4 1 0 2 3 3 0 1...
Practitioners measured spiritual well-being (SWB) in a sample of 16 adults who were alcoholic before and...
Practitioners measured spiritual well-being (SWB) in a sample of 16 adults who were alcoholic before and following treatment for alcoholism. Change in SWB Following Treatment −3 +12 −1 +9 +11 −4 −2 +7 +10 +6 +20 −5 −8 +15 +14 +13 Use the normal approximation for the Wilcoxon signed-ranks T test to analyze the data above. (Round your answer to two decimal places.) z =
Practitioners measured spiritual well-being (SWB) in a sample of 16 adults who were alcoholic before and...
Practitioners measured spiritual well-being (SWB) in a sample of 16 adults who were alcoholic before and following treatment for alcoholism. Change in SWB Following Treatment −3 +12 −1 +9 +11 −4 −2 +7 +10 +6 +20 −5 −8 +15 +14 +13 Use the normal approximation for the Wilcoxon signed-ranks T test to analyze the data above. (Round your answer to two decimal places.) z =
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT