Error in parse(text = x, srcfile = src): <text>:3:17: unexpected symbol
2: y<-c(47.9,54.6,93.7,84.7,100.0,42.5,96.4,77.1,58.3,95.4,78.0,93.3,93.3,93.7,89.8)
3: cor(independent varibale
^
Traceback:
Error in cor(x, y): incompatible dimensions
Traceback:
1. sprintf("coeff. of determination r^2=%2.4f", cor(x, y)^2)
2. cor(x, y)
43.8726538461538
One Sample t-test
data: x
t = 24.661, df = 25, p-value < 2.2e-16
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
40.20874 47.53657
sample estimates:
mean of x
43.87265
One Sample t-test
data: x
t = 2.7023, df = 1, p-value = 0.2256
alternative hypothesis: true mean is not equal to 0
90 percent confidence interval:
-3396.583 8479.583
sample estimates:
mean of x
2541.5
One Sample t-test
data: x
t = 2.7023, df = 1, p-value = 0.2256
alternative hypothesis: true mean is not equal to 0
5 percent confidence interval:
2467.481 2615.519
sample estimates:
mean of x
2541.5