Problem 4.1 Problem 4.1 Consider the experiments on plant growth in environmentally-controlled chambers that were described in Problem 2.3. Suppose we wish to test the effects of two factors on plant...

1 answer below »

View more »
Answered Same DayFeb 24, 2022

Answer To: Problem 4.1 Problem 4.1 Consider the experiments on plant growth in environmentally-controlled...

Mohd answered on Feb 24 2022
111 Votes
-
-
-
2/24/2022
library(magrittr)
library(dplyr)
library(ggplot2)
library(rmarkdown)
library(knitr)
library(data.table)
chem = read.table("New folder (2)/chem.txt", he
ader=TRUE)
attach(chem);
problem 4.2 Consider the data set chem, on the yield of a chemical reaction as a function of the type of base and the type of alcohol used in the reaction. See script2 for some R tips, and show any R code you use to answer the following questions. CHEM - A chemical production process consists of a first reaction with an ALCOHOL and a second reaction with a BASE. A 3x2 factorial experiment was conducted with four replicate reactions for each of the six treatment combinations. The response is percent yield.
Note that ALCOHOL and BASE are both categorical variables, i.e., they are not ordered in any way.
Draw a boxplot of yield for the six treatment combinations.
boxplot(yield~base*alcohol,data=chem)
Fit the two-way ANOVA model, including the interaction term. Show the output, and interpret the results.
mod_1<-lm(yield~base*alcohol,data=chem)
mod_1
##
## Call:
## lm(formula = yield ~ base * alcohol, data = chem)
##
## Coefficients:
## (Intercept) base alcohol base:alcohol
## 94.758 -3.008 -2.975 2.025
summary(mod_1)
##
## Call:
## lm(formula = yield ~ base * alcohol, data = chem)
##
## Residuals:
## Min 1Q Median 3Q Max
## -2.5167 -0.9917 -0.1958 0.7396 3.8083
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 94.7583 2.6527 35.721<2e-16 ***
## base -3.0083 1.6777 -1.793 0.0881 .
## alcohol -2.9750 1.2280 -2.423 0.0250 *
## base:alcohol 2.0250 0.7766 2.607 ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here
April
January
February
March
April
May
June
July
August
September
October
November
December
2025
2025
2026
2027
SunMonTueWedThuFriSat
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30