Question

In: Statistics and Probability

How do I even begin to solve this using R statistical software? A random sample of...

How do I even begin to solve this using R statistical software?
A random sample of eight pairs of twins was randomly assigned to treatment A or treatment B. The data are given in the following table:

Twins 1 2 3 4 5 6 7 8
Treatment A 48.3 44.6 49.7 40.5 54.3 55.6 45.8 35.4
Treatment B 43.5 43.8 53.7 43.9 54.4 54.7 45.2 34.4

What is the p-value of the Wilcoxon signed-rank test?

Is there any significant evidence that the two treatments differ using an α = 0.05 and Wilcoxon-signed rank test.

Compare the p-value of the Wilcoxon-signed rank test and paired t-test.

Solutions

Expert Solution

> treatment_A=c(48.3,44.6,49.7,40.5,54.3,55.6,45.8,35.4)
> treatment_B=c(43.5,43.8,53.7,43.9,54.4,54.7,45.2,34.4)
> wilcox.test(treatment_A, treatment_B, paired = TRUE, alternative = "two.sided")

Wilcoxon signed rank test

data: treatment_A and treatment_B
V = 22, p-value = 0.6406
alternative hypothesis: true location shift is not equal to 0

As p-value = 0.6406 >0.05 we accept the null hypothesis and conclude there is no significant difference between two treatments.

# let's perfom paired t-test

> t.test(treatment_A, treatment_B, paired = TRUE, alternative = "two.sided")

Paired t-test

data: treatment_A and treatment_B
t = 0.076822, df = 7, p-value = 0.9409
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-2.233538 2.383538
sample estimates:
mean of the differences
0.075

Here p-value = 0.9409 >0.05 so we accept the null hypothesis and conclude that their is no significant difference between two treatments.

Compare the p-value of the Wilcoxon-signed rank test and paired t-test.

p-value for paired t-test is 0.9409 and Wilcoxon-signed rank test p-value = 0.6406 so p-value for paired t-test is high as compare to Wilcoxon-signed rank test.

And also indicates that paired t-test has strong evidence for accepting null hypothesis.


Related Solutions

How do I even begin to solve this using R? A random sample of eight pairs...
How do I even begin to solve this using R? A random sample of eight pairs of twins was randomly assigned to treatment A or treatment B. The data are given in the following table. Twins 1 2 3 4 5 6 7 8 Treatment A 48.3 44.6 49.7 40.5 54.3 55.6 45.8 35.4 Treatment B 43.5 43.8 53.7 43.9 54.4 54.7 45.2 34.4 What is the p-value of the Wilcoxon signed-rank test? Is there any significant evidence that the...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE AND ANSWERS, USING AN RMD FILE...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE AND ANSWERS, USING AN RMD FILE (SHOW ANSWERS IN R MARKDOWN FORWAT WITH CODE AND ANSWERS) PROBLEM 1 A study of 400 glaucoma patients yields a sample mean of 140 mm and a sample standard deviation of 25 mm for the the following summaries for the systolic blood pressure readings. Construct the 95% and 99% confidence intervals for μ, the population average systolic blood pressure for glaucoma patients. PROBLEM 2...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400 glaucoma patients yields a sample mean of 140 mm and a sample standard deviation of 25 mm for the the following summaries for the systolic blood pressure readings. Construct the 95% and 99% confidence intervals for μ, the population average systolic blood pressure for glaucoma patients. PROBLEM 2 Suppose that fasting plasma glucose concentrations (FPG) in some population are normally distributed with a mean...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R, POST YOUR CODE: PROBLEM 1. Suppose we have 100...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R, POST YOUR CODE: PROBLEM 1. Suppose we have 100 independent draws from some population distribution whose shape is unknown but where the population mean is 10 and SD is 2.5. Suppose tha tn=100 is sufficiently large that for the sample mean to have an approximately normal distribution. (a) What is the chance that the sample mean is within 0.1 units of the population mean? (b) What is the chance that the sample mean...
I want this to be solved using R studio or R software, please. Here is the...
I want this to be solved using R studio or R software, please. Here is the example: The data in stat4_prob5 present the performance of a chemical process as a function of sever controllable process variables. (a) Fit a multiple regression modelrelating CO2product (y) to total solvent (x1) and hydrogen consumption (x2) and report the fitted regression line. (b) Find a point estimatefor the variance term σ2. (c) Construct the ANOVA tableand test for the significance of the regression using...
When using r programming or statistical software: (A) From the summary, which variables seem useful for...
When using r programming or statistical software: (A) From the summary, which variables seem useful for predicting changes in independent variable? (B) For the purpose of variable selection, does the ANOVA table provide any useful information not already in the summary?
How is statistical software useful?
How is statistical software useful?
(Using R Scholar) For each of the distributions, begin by creating 1000 random samples, each of...
(Using R Scholar) For each of the distributions, begin by creating 1000 random samples, each of size ?. Then, for each of the 1000 samples, you will calculate the sample average, ?̅. After calculating 1000 different ?̅’s, you will be able to make a histogram and normal probability plot of the ?̅ values and thus visualize the distribution of ?̅. The goal is to see what value of ? is large enough for the distribution of ?̅ to become approximately...
For expert using R I try to solve this question((USING DATA FAITHFUL)) but each time I...
For expert using R I try to solve this question((USING DATA FAITHFUL)) but each time I solve it, I have error , I try it many times. So,everything you write will be helpful.. Modify the EM-algorithm functions to work for a general K component Gaussian mixtures. Please use this function to fit a K= 1;2;3;4 modelto the old faithful data available in R (You need to initialize the EM-algorithm First ).    Which modelseems to t the data better? (Hint:...
Please solve all of the question using R and do clarify the answers. Using the (SATGPA)...
Please solve all of the question using R and do clarify the answers. Using the (SATGPA) data set in (Stat2Data) package. Test by using ?= .01. 1) Create the following three variables and then print out all the six variables. A) Create new variable "SAT", which is the sum of (MathSAT) and (VerbalSAT). B) Create second new variable ("SATLevel"), and assign the value of( "SATLevel") as 1 when SAT<=1100, 2 when 1100<SAT<=1200, 3 when 1200<SAT<=1300, and 4 when SAT>1300. C)Create...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT