10_25_1 - > > > > Wheat <-...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
> Wheat <- c(5.2,4.5,6.0,6.1,6.7,5.7) > Barley <- c(6.5,8.0,6.1,7.5,5.9,5.6) > Maize <- c(5.8,4.7,6.4,4.9,6.0,5.2) > Oats <- c(8.3,6.1,7.8,7.0,5.6,7.2) > Grain <- c(rep("Wheat",6),rep("Barley",6),rep("Maize",6),rep("Oats",6)) > Thiamin <- c(Wheat,Barley,Maize,Oats) > Grain [1] "Wheat" "Wheat" "Wheat" "Wheat" "Wheat" "Wheat" "Barley" "Barley" [9] "Barley" "Barley" "Barley" "Barley" "Maize" "Maize" "Maize" "Maize" [17] "Maize" "Maize" "Oats" "Oats" "Oats" "Oats" "Oats" "Oats" > Thiamin [1] 5.2 4.5 6.0 6.1 6.7 5.7 6.5 8.0 6.1 7.5 5.9 5.6 5.8 4.7 6.4 4.9 6.0 5.2 8.3 [20] 6.1 7.8 7.0 5.6 7.2 > results1 <- glm(Thiamin ~ factor(Grain)) > results1 Call: glm(formula = Thiamin ~ factor(Grain)) Coefficients: (Intercept) factor(Grain)Maize factor(Grain)Oats factor(Grain)Wheat 6.6 -1.1 0.4 -0.9 Degrees of Freedom: 23 Total (i.e. Null); 20 Residual Null Deviance: 24.08 Residual Deviance: 14.84 AIC: 66.57 > summary(results1)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2010 for the course STAT stat 420 taught by Professor Stepanov during the Spring '07 term at University of Illinois at Urbana–Champaign.

Page1 / 2

10_25_1 - &gt; &gt; &gt; &gt; Wheat &lt;-...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online