Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data:
-2.69851 -2.53318 -6.17584 -7.04438 -2.46002 0.74635 0.787212 -2.31513 -7.56524 -2.76841 -7.21386 -3.31049 -3.82563 -1.86081 -2.39403 -4.28386 -2.22274 0.316469 -6.02733 -1.54076 -4.73118 1.08103 -3.85327 -2.62979 -3.67269 -3.06931 -3.82911 -1.12001 -2.42311 -1.43772 -2.14123 -0.947899 -3.04794 0.3515 -3.76347 -1.86207 -3.09792 -3.15516 -0.0127557 -2.54049 2.02257 -5.37986 -2.00675 -3.53367 -6.10583 0.12091 -3.9313 0.450524 -1.50542 -1.52302 -1.69321 -4.66891 -3.85003 -3.01082 -8.32756 -4.47066 -0.883644 -7.59884 -5.00696 -5.91646 -4.61467 -5.87479 -3.19891 -6.87894 1.47104 4.57 3.90728 1.14029 0.517811 0.946954 3.78634 2.28596 1.47604 3.45973 4.82724 -1.35304 0.325215 3.02915 1.17065 4.44238 1.4884 1.63268 1.34744 3.10905 3.04681 0.728996 0.945079 4.02312 -1.51429 4.1634 2.74636 0.613409 3.64759 3.28072 5.23891 1.54508 2.29677 0.36388 0.81668 0.981579 3.47923 -3.97455 3.09886 3.7498 1.01573 1.6326 0.443042 3.81007 2.30851 -1.19901 -1.99658 2.67408 2.94967 1.40093 6.50769 2.81964 -0.171326 3.51299 1.57988 0.51166 -2.16827 2.00731 3.51136 0.00015985 0.723627 0.847418 4.48718 0.143973 4.71786 0.103599 -2.39781 -0.606962 -0.660085 5.13547 1.17196 -1.34444 1.06218 2.74099 -1.37454 -2.41339 1.11692 -2.13201 3.03941 -2.9891 4.117 -0.10323 0.98465 0.36981 1.01326 1.74282 1.30285 1.32803 0.372907 -0.205052 0.855059 1.17509 1.36558 -0.0471433 0.276048 6.60367 4.76594 -0.723098 1.51025 -0.169906 0.962535 2.01205 0.584716 2.53293 3.43196 -0.729644 0.204427 4.23718 -4.06601 -0.978479 3.84761 4.39021 3.12719 2.6855 2.80707 5.57272 4.57797 4.65361 4.85743 0.460911 -1.10383 -1.79037 -6.36777 0.406203 1.51829 -0.174336 -0.409901 -0.211111 -0.790076 1.18811 3.82054 -2.16287 1.50034 1.72225 1.70278 2.42141 0.620319 -1.352 -0.139206 1.44153 1.94613 -0.426368 1.76944 -4.26695 -4.16414 -0.633899 -6.11742 -1.44251 -1.13242 -2.91873 1.53626 2.30384 0.773567 -0.560336 2.2155 2.44875 -1.21166 1.39351 -0.305464 2.50806 2.72297 1.56712 0.0723753 2.37872 -1.70445
Sample Range:
(leave blank to include all observations)
From:
To:
Chart options
R Code
x <-sort(x[!is.na(x)]) q1 <- function(data,n,p,i,f) { np <- n*p; i <<- floor(np) f <<- np - i qvalue <- (1-f)*data[i] + f*data[i+1] } q2 <- function(data,n,p,i,f) { np <- (n+1)*p i <<- floor(np) f <<- np - i qvalue <- (1-f)*data[i] + f*data[i+1] } q3 <- function(data,n,p,i,f) { np <- n*p i <<- floor(np) f <<- np - i if (f==0) { qvalue <- data[i] } else { qvalue <- data[i+1] } } q4 <- function(data,n,p,i,f) { np <- n*p i <<- floor(np) f <<- np - i if (f==0) { qvalue <- (data[i]+data[i+1])/2 } else { qvalue <- data[i+1] } } q5 <- function(data,n,p,i,f) { np <- (n-1)*p i <<- floor(np) f <<- np - i if (f==0) { qvalue <- data[i+1] } else { qvalue <- data[i+1] + f*(data[i+2]-data[i+1]) } } q6 <- function(data,n,p,i,f) { np <- n*p+0.5 i <<- floor(np) f <<- np - i qvalue <- data[i] } q7 <- function(data,n,p,i,f) { np <- (n+1)*p i <<- floor(np) f <<- np - i if (f==0) { qvalue <- data[i] } else { qvalue <- f*data[i] + (1-f)*data[i+1] } } q8 <- function(data,n,p,i,f) { np <- (n+1)*p i <<- floor(np) f <<- np - i if (f==0) { qvalue <- data[i] } else { if (f == 0.5) { qvalue <- (data[i]+data[i+1])/2 } else { if (f < 0.5) { qvalue <- data[i] } else { qvalue <- data[i+1] } } } } lx <- length(x) qval <- array(NA,dim=c(99,8)) mystep <- 25 mystart <- 25 if (lx>10){ mystep=10 mystart=10 } if (lx>20){ mystep=5 mystart=5 } if (lx>50){ mystep=2 mystart=2 } if (lx>=100){ mystep=1 mystart=1 } for (perc in seq(mystart,99,mystep)) { qval[perc,1] <- q1(x,lx,perc/100,i,f) qval[perc,2] <- q2(x,lx,perc/100,i,f) qval[perc,3] <- q3(x,lx,perc/100,i,f) qval[perc,4] <- q4(x,lx,perc/100,i,f) qval[perc,5] <- q5(x,lx,perc/100,i,f) qval[perc,6] <- q6(x,lx,perc/100,i,f) qval[perc,7] <- q7(x,lx,perc/100,i,f) qval[perc,8] <- q8(x,lx,perc/100,i,f) } bitmap(file='test1.png') myqqnorm <- qqnorm(x,col=2) qqline(x) grid() dev.off() load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Percentiles - Ungrouped Data',9,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'p',1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_1.htm', 'Weighted Average at Xnp',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_2.htm','Weighted Average at X(n+1)p',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_3.htm','Empirical Distribution Function',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_4.htm','Empirical Distribution Function - Averaging',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_5.htm','Empirical Distribution Function - Interpolation',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_6.htm','Closest Observation',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_7.htm','True Basic - Statistics Graphics Toolkit',''),1,TRUE) a<-table.element(a,hyperlink('http://www.xycoon.com/method_8.htm','MS Excel (old versions)',''),1,TRUE) a<-table.row.end(a) for (perc in seq(mystart,99,mystep)) { a<-table.row.start(a) a<-table.element(a,round(perc/100,2),1,TRUE) for (j in 1:8) { a<-table.element(a,round(qval[perc,j],6)) } 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
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation