[R] sd, mean with a frequency distribution matrix

JS Huang js.huang at protective.com
Fri Feb 13 22:22:29 CET 2015


Or if you want to perform the calculation without using sd:

sqrt((sum(p[,1]^2*p[,2])-(sum(p[,1]*p[,2]))^2/sum(p[,2]))/(sum(p[,2])-1))




--
View this message in context: http://r.789695.n4.nabble.com/sd-mean-with-a-frequency-distribution-matrix-tp4703218p4703231.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list