Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data:
132.1 125 127.1 101.5 85.7 79.3 70.9 77.1 83.9 96.2 111.7 127.2 143.6 134.9 135.6 105.3 86.4 74.6 67.6 73.4 78.5 98.2 118.6 136.9 137.9 115.6 119.3 98.5 84.3 73.5 60.7 69.5 77.9 113.9 126.3 135.1 130.5 113.1 110 90.8 85.4 72.5 64.7 67.2 77.9 105.2 107.2 120.7 121.3 107.9 105.6 81.3 71.7 64.8 57.3 61.9 70.1 88.8 106.8 110.7 114.1 108 111.5 86.8 78.4 68 57.3 65.3 73.3 88.6 101.3 122.9 126.6 114.1 124.7 93.3 77.2 66.5 57.9 63.7 65.8 85 101 105.3 121 117.9 106 86.6 79.9 65.2 61.2 67.6 78.9 95.5 113.1 124.4 122 110.3 114 93.3 75.5 65.4 59.2 63.8 74.2 91.7 107 120.7 127.4 119.7 112.7 84.4 75.6 66.5 59.9 64.8 74.3 100.4 105.9 131.1
Chart options
R Code
library(Hmisc) m <- mean(x) e <- median(x) bitmap(file='test1.png') op <- par(mfrow=c(2,1)) mydensity1 <- density(x,kernel='gaussian',na.rm=TRUE) plot(mydensity1,main='Density Plot - Gaussian Kernel',xlab='Median (0 -> full line) | Mean (0 -> dashed line)',ylab='density') abline(v=e,lty=1) abline(v=m,lty=5) grid() myseq <- seq(0.01, 0.99, 0.01) hd <- hdquantile(x, probs = myseq, se = TRUE, na.rm = FALSE, names = TRUE, weights=FALSE) plot(myseq,hd,col=2,main='Harrell-Davis Quantiles',xlab='quantiles',ylab='Median (0 -> full) | Mean (0 -> dashed)') abline(h=m,lty=5) abline(h=e,lty=1) grid() par(op) dev.off() load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Median versus Mean',2,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'mean',header=TRUE) a<-table.element(a,mean(x)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'median',header=TRUE) a<-table.element(a,median(x)) a<-table.row.end(a) a<-table.end(a) table.save(a,file='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
2 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation