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(109.7,99.1,86.7,111.4,78.4,76.7,114.2,99.7,94.2,173.5,83.1,88.9,132.0,122.1,105.1,133.7,63.6,112.7,120.5,112.0,126.2,209.2,91.0,116.7,137.6,108.1,136.6,152.3,114.3,120.7,131.8,129.4,187.5,189.5,109.2,158.1,176.2,125.5,155.0,170.3,99.4,139.2,169.6,136.1,168.2,318.6,154.1,161.4,183.4,166.3,203,174.6,124.3,154.4,170.5,169.4,171.1,289.2,145.6,134.4,168.2) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 109.7 132.0 137.6 176.2 183.4 168.2 [2,] 99.1 122.1 108.1 125.5 166.3 NA [3,] 86.7 105.1 136.6 155.0 203.0 NA [4,] 111.4 133.7 152.3 170.3 174.6 NA [5,] 78.4 63.6 114.3 99.4 124.3 NA [6,] 76.7 112.7 120.7 139.2 154.4 NA [7,] 114.2 120.5 131.8 169.6 170.5 NA [8,] 99.7 112.0 129.4 136.1 169.4 NA [9,] 94.2 126.2 187.5 168.2 171.1 NA [10,] 173.5 209.2 189.5 318.6 289.2 NA [11,] 83.1 91.0 109.2 154.1 145.6 NA [12,] 88.9 116.7 158.1 161.4 134.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -10.6 -9.9 -29.5 -50.7 -17.1 NA [2,] -12.4 -17.0 28.5 29.5 36.7 NA [3,] 24.7 28.6 15.7 15.3 -28.4 NA [4,] -33.0 -70.1 -38.0 -70.9 -50.3 NA [5,] -1.7 49.1 6.4 39.8 30.1 NA [6,] 37.5 7.8 11.1 30.4 16.1 NA [7,] -14.5 -8.5 -2.4 -33.5 -1.1 NA [8,] -5.5 14.2 58.1 32.1 1.7 NA [9,] 79.3 83.0 2.0 150.4 118.1 NA [10,] -90.4 -118.2 -80.3 -164.5 -143.6 NA [11,] 5.8 25.7 48.9 7.3 -11.2 NA [12,] 43.1 20.9 18.1 22.0 33.8 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/11q151257454638.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/20uck1257454638.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/3djas1257454638.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/4v7wv1257454638.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,] 109.7 99.1 86.7 111.4 63.6 76.7 114.2 99.7 94.2 173.5 83.1 88.9 [2,] 132.0 108.1 105.1 133.7 78.4 112.7 120.5 112.0 126.2 189.5 91.0 116.7 [3,] 152.9 122.1 136.6 152.3 99.4 120.7 131.8 129.4 168.2 209.2 109.2 134.4 [4,] 176.2 125.5 155.0 170.3 114.3 139.2 169.6 136.1 171.1 289.2 145.6 158.1 [5,] 183.4 125.5 203.0 174.6 124.3 154.4 170.5 169.4 187.5 318.6 154.1 161.4 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 124.3896 109.8052 101.3408 126.4385 74.03315 101.9752 97.10606 112.371 [2,] 181.4104 134.3948 171.8592 178.1615 124.76685 139.4248 166.49394 146.429 [,9] [,10] [,11] [,12] [1,] 136.4738 138.7522 70.61978 105.1469 [2,] 199.9262 279.6478 147.78022 163.6531 $out [1] 166.3 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(109.7, 132, 152.9, 176.2, 183.4, 99.1, 108.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5830c1257454638.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,] -50.7 -17.0 15.3 -70.9 -1.7 7.8 -14.5 -5.5 79.3 -164.5 -11.2 18.1 [2,] -29.5 -12.4 15.3 -70.1 6.4 11.1 -14.5 1.7 79.3 -143.6 5.8 20.9 [3,] -17.1 28.5 15.7 -50.3 30.1 16.1 -8.5 14.2 83.0 -118.2 7.3 22.0 [4,] -10.6 29.5 24.7 -38.0 39.8 30.4 -2.4 32.1 118.1 -90.4 25.7 33.8 [5,] -9.9 36.7 28.6 -33.0 49.1 37.5 -1.1 58.1 150.4 -80.3 48.9 43.1 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -30.454692 -1.106434 9.057984 -72.98178 6.499644 2.462669 -17.04982952 [2,] -3.745308 58.106434 22.342016 -27.61822 53.700356 29.737331 0.04982952 [,8] [,9] [,10] [,11] [,12] [1,] -7.280563 55.58402 -155.79099 -6.76129 12.88489 [2,] 35.680563 110.41598 -80.60901 21.36129 31.11511 $out [1] -28.4 -33.5 2.0 $group [1] 3 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-50.7, -29.5, -17.1, -10.6, -9.9, -17, -12.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zeog1257454638.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,] 76.70 91.00 108.1 99.40 124.30 168.2 [2,] 84.90 108.55 117.5 137.65 150.00 168.2 [3,] 96.65 118.60 134.2 158.20 169.95 168.2 [4,] 110.55 129.10 155.2 169.95 179.00 168.2 [5,] 114.20 133.70 189.5 176.20 203.00 168.2 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 84.95086 109.227 117.0048 143.4678 156.7229 168.2 [2,] 108.34914 127.973 151.3952 172.9322 183.1771 168.2 $out [1] 173.5 63.6 209.2 318.6 289.2 $group [1] 1 2 2 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(76.7, 84.9, 96.65, 110.55, 114.2, 91, 108.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xnbz1257454638.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,] 96.0000 99.4 96.350 [2,] 122.4800 121.4 121.175 [3,] 134.5900 133.1 133.725 [4,] 148.9500 152.6 150.325 [5,] 151.1833 168.2 153.800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 122.5169 118.8695 120.4295 [2,] 146.6631 147.3305 147.0205 $out [1] 236.00 209.20 239.35 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96, 122.48, 134.59, 148.95, 151.183333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11q151257454638.ps tmp/11q151257454638.png") > system("convert tmp/20uck1257454638.ps tmp/20uck1257454638.png") > system("convert tmp/3djas1257454638.ps tmp/3djas1257454638.png") > system("convert tmp/4v7wv1257454638.ps tmp/4v7wv1257454638.png") > system("convert tmp/5830c1257454638.ps tmp/5830c1257454638.png") > system("convert tmp/6zeog1257454638.ps tmp/6zeog1257454638.png") > system("convert tmp/7xnbz1257454638.ps tmp/7xnbz1257454638.png") > > > proc.time() user system elapsed 1.243 0.968 6.394