> mildew <- c(0.7, 2.6, 2.6, 4.3, 4.8, 0.9, 6.5, 2.4, 4.1, 4.7, 0.8)
> yield <- c(4.41, 4.26, 4.28, 3.90, 4.28, 4.60, 3.87, 4.04, 4.16, 3.93, 4.60)
> data <- matrix( c(mildew, yield), nrow = 11, ncol = 2, FALSE)
> regressionLine <- lm(yield ~ mildew)
> plot(mildew, yield)
> abline(regressionLine)
know you have the scatter plot and regression line
the regression line is: y = -0.1124 * x + 4.5634
if x = 1.5 then y = 4.3948
the correlation is found via:
> cor(data)
you'll find the correlation to be -0.8228063
2007-10-20 20:26:51
·
answer #1
·
answered by Merlyn 7
·
0⤊
0⤋
I think you need to do the calculation yourself, then come back with more specific questions if necessary.
2007-10-20 10:12:16
·
answer #2
·
answered by Curt Monash 7
·
0⤊
0⤋