R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(128.7,136.9,156.9,109.1,122.3,123.9,90.9,77.9,120.3,118.9,125.5,98.9,102.9,105.9,117.6,113.6,115.9,118.9,77.6,81.2,123.1,136.6,112.1,95.1,96.3,105.7,115.8,105.7,105.7,111.1,82.4,60,107.3,99.3,113.5,108.9,100.2,103.9,138.7,120.2,100.2,143.2,70.9,85.2,133,136.6,117.9,106.3,122.3,125.5,148.4,126.3,99.6,140.4,80.3,92.6,138.5,110.9,119.6,105) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 128.7 102.9 96.3 100.2 122.3 NA [2,] 136.9 105.9 105.7 103.9 125.5 NA [3,] 156.9 117.6 115.8 138.7 148.4 NA [4,] 109.1 113.6 105.7 120.2 126.3 NA [5,] 122.3 115.9 105.7 100.2 99.6 NA [6,] 123.9 118.9 111.1 143.2 140.4 NA [7,] 90.9 77.6 82.4 70.9 80.3 NA [8,] 77.9 81.2 60.0 85.2 92.6 NA [9,] 120.3 123.1 107.3 133.0 138.5 NA [10,] 118.9 136.6 99.3 136.6 110.9 NA [11,] 125.5 112.1 113.5 117.9 119.6 NA [12,] 98.9 95.1 108.9 106.3 105.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 8.2 3.0 9.4 3.7 3.2 NA [2,] 20.0 11.7 10.1 34.8 22.9 NA [3,] -47.8 -4.0 -10.1 -18.5 -22.1 NA [4,] 13.2 2.3 0.0 -20.0 -26.7 NA [5,] 1.6 3.0 5.4 43.0 40.8 NA [6,] -33.0 -41.3 -28.7 -72.3 -60.1 NA [7,] -13.0 3.6 -22.4 14.3 12.3 NA [8,] 42.4 41.9 47.3 47.8 45.9 NA [9,] -1.4 13.5 -8.0 3.6 -27.6 NA [10,] 6.6 -24.5 14.2 -18.7 8.7 NA [11,] -26.6 -17.0 -4.6 -11.6 -14.6 NA [12,] 4.0 1.2 -8.7 16.0 NA 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/freestat/rcomp/tmp/1h8kp1257954819.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/freestat/rcomp/tmp/2quja1257954819.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/freestat/rcomp/tmp/3fkys1257954819.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/freestat/rcomp/tmp/4qw3a1257954819.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,] 96.3 103.9 115.8 105.7 99.6 111.1 70.9 77.9 107.3 99.3 112.1 95.1 [2,] 100.2 105.7 117.6 109.1 100.2 118.9 77.6 77.9 120.3 110.9 113.5 98.9 [3,] 102.9 105.9 138.7 113.6 105.7 123.9 80.3 81.2 123.1 118.9 117.9 105.0 [4,] 122.3 125.5 148.4 120.2 115.9 140.4 82.4 85.2 133.0 136.6 119.6 106.3 [5,] 128.7 136.9 156.9 126.3 122.3 143.2 82.4 92.6 138.5 136.6 125.5 108.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 87.2842 91.90937 116.9368 105.7568 94.60642 108.7082 76.90833 76.04184 [2,] 118.5158 119.89063 160.4632 121.4432 116.79358 139.0918 83.69167 86.35816 [,9] [,10] [,11] [,12] [1,] 114.1262 100.7404 113.5898 99.77118 [2,] 132.0738 137.0596 122.2102 110.22882 $out [1] 90.9 60.0 $group [1] 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(96.3, 100.2, 102.9, 122.3, 128.7, 103.9, 105.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5hilw1257954819.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.0 10.1 -22.1 -26.7 1.6 -72.3 -22.4 41.9 -8.0 -24.5 -17.0 -8.70 [2,] 3.2 11.7 -22.1 -20.0 3.0 -60.1 -13.0 42.4 -8.0 -18.7 -17.0 -3.75 [3,] 3.7 20.0 -18.5 0.0 5.4 -41.3 3.6 45.9 -1.4 6.6 -14.6 2.60 [4,] 8.2 22.9 -10.1 2.3 40.8 -33.0 12.3 47.3 3.6 8.7 -11.6 10.00 [5,] 9.4 34.8 -4.0 13.2 43.0 -28.7 14.3 47.8 13.5 14.2 -4.6 16.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1670126 12.08611 -26.97917 -15.75712 -21.30938 -60.44879 -14.27692 [2,] 7.2329874 27.91389 -10.02083 15.75712 32.10938 -22.15121 21.47692 [,8] [,9] [,10] [,11] [,12] [1,] 42.43767 -9.596531 -12.76077 -18.41563 -8.2625 [2,] 49.36233 6.796531 25.96077 -10.78437 13.4625 $out [1] -47.8 -27.6 -26.6 $group [1] 3 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3, 3.2, 3.7, 8.20000000000002, 9.4, 10.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6tp971257954819.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] [1,] 77.9 77.60 82.4 70.9 80.30 NA [2,] 104.0 99.00 97.8 100.2 102.30 NA [3,] 121.3 112.85 105.7 112.1 120.95 NA [4,] 127.1 118.25 110.0 134.8 132.40 NA [5,] 156.9 136.60 115.8 143.2 148.40 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 110.7639 104.0699 100.1355 96.3187 107.2212 NA [2,] 131.8361 121.6301 111.2645 127.8813 134.6788 NA $out [1] 60 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(77.9, 104, 121.3, 127.1, 156.9, 77.6, 99, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7hjls1257954819.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,] 102.84 80.30 80.000 [2,] 105.79 103.95 105.325 [3,] 115.28 109.75 115.125 [4,] 122.45 121.00 125.200 [5,] 135.48 138.70 133.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 107.6813 101.9734 106.0599 [2,] 122.8787 117.5266 124.1901 $out [1] 80.42 79.38 $group [1] 1 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.84, 105.79, 115.28, 122.45, 135.48, 80.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1h8kp1257954819.ps tmp/1h8kp1257954819.png") > system("convert tmp/2quja1257954819.ps tmp/2quja1257954819.png") > system("convert tmp/3fkys1257954819.ps tmp/3fkys1257954819.png") > system("convert tmp/4qw3a1257954819.ps tmp/4qw3a1257954819.png") > system("convert tmp/5hilw1257954819.ps tmp/5hilw1257954819.png") > system("convert tmp/6tp971257954819.ps tmp/6tp971257954819.png") > system("convert tmp/7hjls1257954819.ps tmp/7hjls1257954819.png") > > > proc.time() user system elapsed 1.871 1.485 2.470