Question

Q6. (Spts) (Apply Rto this question, R markdown format is requested) For the following data, generate ANOVA summary table. 1
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Enter data like this:

FactorA FactorB Variable
A1 B1 34.2
A1 B1 33.3
A1 B1 30.4
A1 B1 27.9
A1 B2 36.3
A1 B2 25.9
A1 B2 28.5
A1 B2 34.7
A1 B3 29.7
A1 B3 38.9
A1 B3 37.6
A1 B3 35.6
A2 B1 45.5
A2 B1 39.7
A2 B1 38.3
A2 B1 35.9
A2 B2 37.5
A2 B2 37.9
A2 B2 42.4
A2 B2 37.5
A2 B3 33.2
A2 B3 45
A2 B3 40.1
A2 B3 44.5
A3 B1 31
A3 B1 35.1
A3 B1 29.5
A3 B1 39.1
A3 B2 38.3
A3 B2 35.7
A3 B2 36.3
A3 B2 33.5
A3 B3 41.4
A3 B3 39.8
A3 B3 39
A3 B3 36.7

Rcode:

> data = read.csv(".\anova.csv") #read data

> View(data)
> model = lm(Variable~FactorA+FactorB+FactorA*FactorB,data=data) #fit a model
> anova(model) #anova

Output:
Analysis of Variance Table  

Response: Variable
Df Sum Sq Mean Sq F value Pr(>F)
FactorA 2 297.51 148.756 10.4667 0.0004313 ***
FactorB 2 86.69 43.343 3.0497 0.0639497 .
FactorA:FactorB 4 26.40 6.599 0.4643 0.7612715
Residuals 27 383.73 14.212

---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Here, Factor A is signficant only at alpha 0,0.01,0.05 etc.

FactorB and Interaction effects are not significant.

Please rate my answer and comment for doubt.

Add a comment
Know the answer?
Add Answer to:
Q6. (Spts) (Apply Rto this question, R markdown format is requested) For the following data, generate...
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
  • Please show all work in great detail. Will give thumps up. Thank you Question 5 (10...

    Please show all work in great detail. Will give thumps up. Thank you Question 5 (10 points) Wilcoxon Signed-Rank Test for n»30. When you are performing a Wilcoxon signed-rank test and the sample size n is greater than 30, you can use the StandardNormal Table and the formula below to find the test statistic 24 In this problem, perform the Wilcoxon signed-rank test using the test statistic for n>30 A petroleum engineer wants to know whether a certain fuel additive...

  • Here is a data set (n = 117) that has been sorted. 19.4 20.3 20.7 23.6 23.7 24 25.7 25.7 25.8 27.8 27.8 28.3 28.5 2...

    Here is a data set (n = 117) that has been sorted. 19.4 20.3 20.7 23.6 23.7 24 25.7 25.7 25.8 27.8 27.8 28.3 28.5 28.6 28.7 29.5 29.8 30.3 30.6 31 31 31.8 32.6 33 33.2 34.1 34.1 34.9 35.2 35.2 36.5 36.8 37.8 37.8 39.7 39.8 41.6 41.7 43 34.3 34.5 34.5 34.5 34.7 34.8 35.3 35.4 35.4 35.9 36.1 36.3 36.3 36.9 37 37.1 37.1 37.1 37.3 37.3 37.9 38.1 38.1 38.4 38.8 38.9 39.2 40.1 40.4...

  • A gardener plants 300 sunflower seeds (of a brand called KwikGrow) and, after 2 weeks, measures...

    A gardener plants 300 sunflower seeds (of a brand called KwikGrow) and, after 2 weeks, measures the seedlings’ heights (in mm). These heights are recorded below. He is interested in testing whether the mean height of sunflowers grown from KwikGrow seeds is greater than 33 mm two weeks after planting. He decides to conduct a hypothesis test by assuming that the sampling distribution of the sample mean has a normal distribution. For the purposes of this question, you may assume...

  • College Graduation and Other State Characteristics (n = 50, k = 8) omit State ColGrad% Dropout...

    College Graduation and Other State Characteristics (n = 50, k = 8) omit State ColGrad% Dropout EdSpend Metro% Age LPRFem Neast Seast West Midwest AL 19.8 19.1 1221 89.2 37.4 55.8 0 1 0 0 AK 28.7 8.3 2187 74.7 33.9 65.6 0 0 1 0 AZ 27.9 14.3 1137 96.7 34.5 57.4 0 0 1 0 AR 17.5 18.6 1158 78.8 37.0 54.9 0 1 0 0 CA 30.4 19.7 1657 99.3 34.4 57.6 0 0 1 0 CO...

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