Professional Documents
Culture Documents
:10
Design of Experiments
CRD
Problem:1
A random sample is selected from each of
3 makes of ropes (Type 1, Type 2 and Type
3) and their breaking strength (in certain
units) are measured with the results in the
following table.
Type 1 : 14 16 18
Type 2 :14 13 15 22
Type 3 : 18 16 19 19 20
Write down the R programming code to test
whether the breaking strengths of the ropes
differ significantly at 5 % level of significance.
R Code
# CRD - ANOVA for 1 Way Classification
D1=c(14, 16, 18)
D2=c(14, 13,15,22)
D3=c(18,16,19,19,20)
Data=c(D1, D2, D3)
Data
Type=c(rep("Type1",length(D1)),rep("Type2",l
ength(D2)),rep("Type3",length(D3)))
Type
ANOVA1=aov(Data~Type)
summary(ANOVA1)
FTab=qf((1-0.05),9,2)
RBD
Problem:2