Tuesday, January 21, 2020

Online R B1 Demos

https://dkeithwilliams.github.io/onlineRclass/

senic=read.csv("http://www.ics.uci.edu/~sternh/courses/210/senic.csv",header=T)
p19=c(5, 2, 3, 6, 1, 2, 4, 5, 1, 3)
p19^2
sum(p19)
(sum(p19))^2
sum(p19^2)
s2=(130-(1024/10))/(10-1)
sqrt(s2)
var(p19)
sd(p19)

p45=c(3, 9, 10, 2, 6, 7, 5, 8, 6, 6, 4, 9, 22)
sort(p45)
quantile(p45,probs = c(.25,.50,.75),type=6)

l25=.25*(13+1)
l25
l75=.75*(13+1)
l75

9+1.5*4.5
4.5-1.5*4.5