R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(14.2,13.5,11.9,14.6,15.6,14.1,14.9,14.2,14.6,17.2,15.4,14.3,17.5,14.5,14.4,16.6,16.7,16.6,16.9,15.7,16.4,18.4,16.9,16.5,18.3,15.1,15.7,18.1,16.8,18.9,19,18.1,17.8,21.5,17.1,18.7,19,16.4,16.9,18.6,19.3,19.4,17.6,18.6,18.1,20.4,18.1,19.6,19.9,19.2,17.8,19.2,22,21.1,19.5,22.2,20.9,22.2,23.5,21.5,24.3,22.8,20.3,23.7,23.3,19.6,18,17.3,16.8,18.2,16.5,16,18.4) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 73 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 14.2 17.5 18.3 19.0 19.9 24.3 18.4 [2,] 13.5 14.5 15.1 16.4 19.2 22.8 NA [3,] 11.9 14.4 15.7 16.9 17.8 20.3 NA [4,] 14.6 16.6 18.1 18.6 19.2 23.7 NA [5,] 15.6 16.7 16.8 19.3 22.0 23.3 NA [6,] 14.1 16.6 18.9 19.4 21.1 19.6 NA [7,] 14.9 16.9 19.0 17.6 19.5 18.0 NA [8,] 14.2 15.7 18.1 18.6 22.2 17.3 NA [9,] 14.6 16.4 17.8 18.1 20.9 16.8 NA [10,] 17.2 18.4 21.5 20.4 22.2 18.2 NA [11,] 15.4 16.9 17.1 18.1 23.5 16.5 NA [12,] 14.3 16.5 18.7 19.6 21.5 16.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.7 -3.0 -3.2 -2.6 -0.7 -1.5 NA [2,] -1.6 -0.1 0.6 0.5 -1.4 -2.5 NA [3,] 2.7 2.2 2.4 1.7 1.4 3.4 NA [4,] 1.0 0.1 -1.3 0.7 2.8 -0.4 NA [5,] -1.5 -0.1 2.1 0.1 -0.9 -3.7 NA [6,] 0.8 0.3 0.1 -1.8 -1.6 -1.6 NA [7,] -0.7 -1.2 -0.9 1.0 2.7 -0.7 NA [8,] 0.4 0.7 -0.3 -0.5 -1.3 -0.5 NA [9,] 2.6 2.0 3.7 2.3 1.3 1.4 NA [10,] -1.8 -1.5 -4.4 -2.3 1.3 -1.7 NA [11,] -1.1 -0.4 1.6 1.5 -2.0 -0.5 NA [12,] 3.2 1.8 0.3 0.3 2.8 2.4 NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1oo2e1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2ricb1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3p51s1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4didv1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 17.50 13.50 11.9 14.60 15.60 14.10 14.9 14.2 14.6 17.2 15.4 14.3 [2,] 17.90 14.50 14.4 16.60 16.70 16.60 16.9 15.7 16.4 18.2 16.5 16.0 [3,] 18.40 15.75 16.3 18.35 18.05 19.15 17.8 17.7 17.3 19.4 17.0 17.6 [4,] 19.45 19.20 17.8 19.20 22.00 19.60 19.0 18.6 18.1 21.5 18.1 19.6 [5,] 19.90 22.80 20.3 19.20 23.30 21.10 19.5 22.2 18.1 22.2 18.1 21.5 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 17.47437 12.71835 14.10689 16.67292 14.63133 17.21490 16.44543 15.82941 [2,] 19.32563 18.78165 18.49311 20.02708 21.46867 21.08510 19.15457 19.57059 [,9] [,10] [,11] [,12] [1,] 16.20345 17.27139 15.96795 15.27788 [2,] 18.39655 21.52861 18.03205 19.92212 $out [1] 14.2 24.3 23.7 20.9 23.5 $group [1] 1 1 4 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(17.5, 17.9, 18.4, 19.45, 19.9, 13.5, 14.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r5oh1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -3.20 -2.50 1.4 -1.3 -3.7 -1.80 -1.2 -1.3 1.30 -2.30 -2.00 0.3 [2,] -3.00 -1.60 1.7 -0.4 -1.5 -1.60 -0.9 -0.5 1.40 -2.30 -1.10 0.3 [3,] -2.05 -0.75 2.3 0.4 -0.5 -0.75 -0.7 -0.4 2.15 -1.75 -0.45 2.1 [4,] -0.70 0.50 2.7 1.0 0.1 0.30 1.0 0.4 2.60 -1.50 1.50 2.8 [5,] -0.70 0.60 3.4 2.8 2.1 0.80 2.7 0.7 3.70 -1.50 1.60 3.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.5335743 -2.1045678 1.654968 -0.5030452 -1.5320517 -1.9755614 -1.9255614 [2,] -0.5664257 0.6045678 2.945032 1.3030452 0.5320517 0.4755614 0.5255614 [,8] [,9] [,10] [,11] [,12] [1,] -0.9805291 1.375961 -2.266026 -2.127084 0.4874193 [2,] 0.1805291 2.924039 -1.233974 1.227084 3.7125807 $out [1] -4.4 1.3 $group [1] 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.2, -3, -2.05, -0.700, -0.700, -2.5, -1.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6wici1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 13.50 15.70 15.10 16.40 17.80 16.00 18.4 [2,] 14.15 16.05 16.95 17.85 19.35 17.05 18.4 [3,] 14.45 16.60 18.10 18.60 21.00 18.90 18.4 [4,] 15.15 16.90 18.80 19.35 22.10 23.05 18.4 [5,] 15.60 17.50 21.50 20.40 23.50 24.30 18.4 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 13.99389 16.21231 17.25620 17.91584 19.74571 16.16336 18.4 [2,] 14.90611 16.98769 18.94380 19.28416 22.25429 21.63664 18.4 $out [1] 11.9 17.2 14.5 14.4 18.4 $group [1] 1 1 2 2 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(13.5, 14.15, 14.45, 15.15, 15.6, 15.7, 16.05, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7remj1257418152.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 16.16667 15.750 16.15000 [2,] 17.54167 17.150 17.24375 [3,] 17.84167 17.750 17.83125 [4,] 18.63333 18.375 18.51875 [5,] 19.65000 19.400 19.73750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17.34375 17.19127 17.24971 [2,] 18.33958 18.30873 18.41279 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16.1666666666667, 17.5416666666667, 17.8416666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oo2e1257418152.ps tmp/1oo2e1257418152.png") > system("convert tmp/2ricb1257418152.ps tmp/2ricb1257418152.png") > system("convert tmp/3p51s1257418152.ps tmp/3p51s1257418152.png") > system("convert tmp/4didv1257418152.ps tmp/4didv1257418152.png") > system("convert tmp/5r5oh1257418152.ps tmp/5r5oh1257418152.png") > system("convert tmp/6wici1257418152.ps tmp/6wici1257418152.png") > system("convert tmp/7remj1257418152.ps tmp/7remj1257418152.png") > > > proc.time() user system elapsed 1.206 0.947 4.311