R1
Revision as of 16:18, 19 June 2013 by GethinWilliams (talk | contribs) (Created page with 'category:Pragmatic Programming '''Open Source Statistics with R''' =Why Bother with R?= =Linear Regression= <source lang="r"> plot(cars) res=lm(dist ~ speed, data=cars) a…')
Open Source Statistics with R
Why Bother with R?
Linear Regression
plot(cars)
res=lm(dist ~ speed, data=cars)
abline(res)
Significance Testing
> boys_2=c(90.2, 91.4, 86.4, 87.6, 86.7, 88.1, 82.2, 83.8, 91, 87.4)
> girls_2=c(83.8, 86.2, 85.1, 88.6, 83, 88.9, 89.7, 81.3, 88.7, 88.4)
> res=var.test(boys_2,girls_2)
> res=t.test(boys_2, girls_2, var.equal=TRUE, paired=FALSE)