Question

In: Statistics and Probability

SOLVE USING R: Eighteen freshwater mussels (Elliptio dilatata) were randomly assigned to three groups of six...

SOLVE USING R: Eighteen freshwater mussels (Elliptio dilatata) were randomly assigned to three groups of six each. One group was placed in water from the river where the mussels were collected, one group was placed in deionized water, and one group was placed in a solution of 0.5 millimoles per liter (mM) of sodium sulfate. At the end of a specified time period, blood (hemolymph) was collected from each mussel and potassium levels were determined. Do the treatments affect blood potassium levels (mM K+)? (Suppose the assumptions of ANOVA hold.)

River Water 0.518 0.523 0.495 0.502 0.525 0.490

Deionized Water 0.318 0.342 0.301 0.390 0.327 0.320

PLEASE COPY AND PASTE R INPUT AND OUTPUT.

Sodium Sulfate 0.393 0.415 0.351 0.390 0.385 0.397

Solutions

Expert Solution

Following is the R input and output:

Input:

Group1 <- c(0.51, 0.523, 0.495, 0.502, 0.525, 0.490)#River water
Group2 <- c(0.318, 0.342, 0.301, 0.390, 0.327, 0.320)#Deionized Water
Group3 <- c(0.393, 0.415, 0.351, 0.390, 0.385, 0.397)#Sodium Sulphate

Group1
Group2
Group3

Output:

 Group1 [1] 0.510 0.523 0.495 0.502 0.525 0.490 > Group2 [1] 0.318 0.342 0.301 0.390 0.327 0.320 > Group3 [1] 0.393 0.415 0.351 0.390 0.385 0.397

Input:

Combined_Groups <- data.frame(cbind(Group1, Group2, Group3)) #combines the data into a single data set
Combined_Groups #shows spreadsheet like results
summary(Combined_Groups) #min, median, mean, max

Output:

 Combined_Groups <- data.frame(cbind(Group1, Group2, Group3)) > Combined_Groups  Group1 Group2 Group3 1 0.510 0.318 0.393 2 0.523 0.342 0.415 3 0.495 0.301 0.351 4 0.502 0.390 0.390 5 0.525 0.327 0.385 6 0.490 0.320 0.397 > summary(Combined_Groups)  Group1 Group2 Group3 Min. :0.4900 Min. :0.3010 Min. :0.3510 1st Qu.:0.4968 1st Qu.:0.3185 1st Qu.:0.3862 Median :0.5060 Median :0.3235 Median :0.3915 Mean :0.5075 Mean :0.3330 Mean :0.3885 3rd Qu.:0.5198 3rd Qu.:0.3382 3rd Qu.:0.3960 Max. :0.5250 Max. :0.3900 Max. :0.4150 

Input:

Stacked_Groups <- stack(Combined_Groups)
Stacked_Groups #shows the table Stacked_Groups

Output:

 Stacked_Groups  values ind 1 0.510 Group1 2 0.523 Group1 3 0.495 Group1 4 0.502 Group1 5 0.525 Group1 6 0.490 Group1 7 0.318 Group2 8 0.342 Group2 9 0.301 Group2 10 0.390 Group2 11 0.327 Group2 12 0.320 Group2 13 0.393 Group3 14 0.415 Group3 15 0.351 Group3 16 0.390 Group3 17 0.385 Group3 18 0.397 Group3

Input:

Anova_Results <- aov(values ~ ind, data = Stacked_Groups)
summary(Anova_Results) #shows Anova_Results

Output:

 summary(Anova_Results)  Df Sum Sq Mean Sq F value Pr(>F) ind 2 0.09538 0.04769 88.92 4.8e-09 *** Residuals 15 0.00805 0.00054 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

We have F(2,15) = 88.92 and p-value is 0.0000000048. Since p value is very small therefore null hypothesis is statistically significant. This implies that the treatments affect blood potassium levels.


Related Solutions

PLEASE SOLVE USING RSTUDIO 1. Eighteen freshwater clams were randomly assigned to 3 groups of 6...
PLEASE SOLVE USING RSTUDIO 1. Eighteen freshwater clams were randomly assigned to 3 groups of 6 each. One group was placed in the pond water from which the clams were collected, one group was placed in deionized water, and one group was placed in a solution of 0.5 mM sodium sulfate. At the end of the specified time period, blood potassium levels were determined. i. Consider and comment on the technical assumptions of ANOVA. Conduct statistical tests where possible and...
SOLVE USING R: Twenty four rug rats were randomly assigned to four groups of six each....
SOLVE USING R: Twenty four rug rats were randomly assigned to four groups of six each. The groups were subjected to different levels of stress (high, moderate, low, and none) induced by occasional, unexpected loud noises. After one week, density of blood lym- phocytes (cells ×106/ml) were measured. Prior studies indicated that the homogeneity assumption was violated and could not be remedied. High: 2.9, 1.8, 2.1, 1.5, 0.9, 2.8 Moderate: 3.7, 4.6, 4.2, 2.8, 3.2, 4.5 Low: 5.2, 6.2, 5.7,...
SOLVE USING R. COPY AND PASTE R INPUT AND OUTPUT. Fifteen turkey hens were randomly assigned...
SOLVE USING R. COPY AND PASTE R INPUT AND OUTPUT. Fifteen turkey hens were randomly assigned to three groups of five. One group was given diet A, the second group diet B, and the third group diet C. We wish to know if there is a difference in the weight of eggs produced by the birds on these diets, and if so, which diet results in the largest eggs. The data are the mean weights of ten eggs from each...
Depressed patients were randomly assigned to one of three groups: a placebo group, a group that...
Depressed patients were randomly assigned to one of three groups: a placebo group, a group that received a moderate dose of the drug, and a group that received a high dose of the drug. After four weeks of treatment, the patients completed the Beck Depression Inventory. The higher the score, the more depressed the patient. We are now also interested if a patient's weight has an effect on the drug's effectiveness. Patients were categorized as either underweight, overweight, or 'medium...
Depressed patients were randomly assigned to one of three groups: a placebo group, a group that...
Depressed patients were randomly assigned to one of three groups: a placebo group, a group that received a moderate dose of the drug, and a group that received a high dose of the drug. After four weeks of treatment, the patients completed the Beck Depression Inventory. The higher the score, the more depressed the patient. We are now also interested if a patient's weight has an effect on the drug's effectiveness. Patients were categorized as either underweight, overweight, or 'medium...
A researcher randomly assigned individuals to one of three groups and noted their monthly intake of...
A researcher randomly assigned individuals to one of three groups and noted their monthly intake of broccoli (in pounds). At the 0.05 level of significance, can it be concluded that there is a difference in the means? Group A 2.3 3.1 1.4 2.6 1.8 Group B 1.4 1.9 2.3 1.2 Group C 1.8 3.4 1.1 2.6 ?1 = 5 ?2 = 4 ?3 = 4 ̅̅̅ ?1 = 2.24 ̅̅̅ ?2 = 1.7 ̅̅̅ ?3 = 2.225 ?2 = 0.67...
15 trainees are randomly assigned to 3 groups. Tne scores at the end are below. Using...
15 trainees are randomly assigned to 3 groups. Tne scores at the end are below. Using the ANOVA provedure we decide the 3 sample means are significantly. different TRUE or FALSE A1 86, 79, 81, 70,84 A2 90. 76. 88. 82.89 A3. 82. 68 73. 71 81
In a large clinical​ trial, 390,444 children were randomly assigned to two groups. The treatment group...
In a large clinical​ trial, 390,444 children were randomly assigned to two groups. The treatment group consisted of 195,174 children given a vaccine for a certain​disease, and 30 of those children developed the disease. The other 195,270 children were given a​ placebo, and 105 of those children developed the disease. Consider the vaccine treatment group to be the first sample. Identify the values of n1 ModifyingAbove p with caret p1​, ModifyingAbove q with caret q1​, n2 ModifyingAbove p with caret...
In the largest clinical trial ever​ conducted, 401,974 children were randomly assigned to two groups. The...
In the largest clinical trial ever​ conducted, 401,974 children were randomly assigned to two groups. The treatment group consisted of​ 201,229 children given the Salk vaccine for​ polio, and the other​ 200,745 children were given a placebo. Among those in the treatment​ group, 33 developed​ polio, and among those in the placebo​ group, 115 developed polio. If we want to use the methods for testing a claim about two population proportions to test the claim that the rate of polio...
In a large clinical​ trial, 400 comma 700 children were randomly assigned to two groups. The...
In a large clinical​ trial, 400 comma 700 children were randomly assigned to two groups. The treatment group consisted of 199 comma 986 children given a vaccine for a certain​ disease, and 35 of those children developed the disease. The other 200 comma 714 children were given a​ placebo, and 105 of those children developed the disease. Consider the vaccine treatment group to be the first sample. Identify the values of n 1​, ModifyingAbove p with caret 1​, ModifyingAbove q...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT