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(117.1,118.7,126.5,127.5,134.6,131.8,135.9,142.7,141.7,153.4,145,137.7,148.3,152.2,169.4,168.6,161.1,174.1,179,190.6,190,181.6,174.8,180.5,196.8,193.8,197,216.3,221.4,217.9,229.7,227.4,204.2,196.6,198.8,207.5,190.7,201.6,210.5,223.5,223.8,231.2,244,234.7,250.2,265.7,287.6,283.3,295.4,312.3,333.8,347.7,383.2,407.1,413.6,362.7,321.9,239.4,191,159.7,163.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] 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,] 117.1 148.3 196.8 190.7 295.4 163.4 [2,] 118.7 152.2 193.8 201.6 312.3 NA [3,] 126.5 169.4 197.0 210.5 333.8 NA [4,] 127.5 168.6 216.3 223.5 347.7 NA [5,] 134.6 161.1 221.4 223.8 383.2 NA [6,] 131.8 174.1 217.9 231.2 407.1 NA [7,] 135.9 179.0 229.7 244.0 413.6 NA [8,] 142.7 190.6 227.4 234.7 362.7 NA [9,] 141.7 190.0 204.2 250.2 321.9 NA [10,] 153.4 181.6 196.6 265.7 239.4 NA [11,] 145.0 174.8 198.8 287.6 191.0 NA [12,] 137.7 180.5 207.5 283.3 159.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.6 3.9 -3.0 10.9 16.9 NA [2,] 7.8 17.2 3.2 8.9 21.5 NA [3,] 1.0 -0.8 19.3 13.0 13.9 NA [4,] 7.1 -7.5 5.1 0.3 35.5 NA [5,] -2.8 13.0 -3.5 7.4 23.9 NA [6,] 4.1 4.9 11.8 12.8 6.5 NA [7,] 6.8 11.6 -2.3 -9.3 -50.9 NA [8,] -1.0 -0.6 -23.2 15.5 -40.8 NA [9,] 11.7 -8.4 -7.6 15.5 -82.5 NA [10,] -8.4 -6.8 2.2 21.9 -48.4 NA [11,] -7.3 5.7 8.7 -4.3 -31.3 NA [12,] 10.6 16.3 -16.8 12.1 3.7 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/1c7yj1257957281.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/2mis81257957281.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/3y5wl1257957281.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/44jvs1257957281.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,] 117.10 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145.0 137.7 [2,] 148.30 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 174.8 159.7 [3,] 177.05 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 191.0 180.5 [4,] 196.80 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 239.4 198.8 207.5 [5,] 196.80 201.6 210.5 223.5 223.8 231.2 244.0 234.7 321.9 265.7 198.8 207.5 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 145.7659 158.8941 167.9588 177.5078 177.0963 177.5533 183.7712 196.2391 [2,] 208.3341 228.7059 226.0412 255.0922 265.7037 258.2467 275.6288 258.5609 [,9] [,10] [,11] [,12] [1,] 161.6628 155.7587 174.0417 146.7246 [2,] 246.7372 237.4413 207.9583 214.2754 $out [1] 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 287.6 283.3 $group [1] 1 2 3 4 5 6 7 8 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(117.1, 148.3, 177.05, 196.8, 196.8, 118.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5jwta1257957281.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 3.2 -0.8 -7.5 -3.5 4.1 -9.3 -40.8 -8.4 -8.4 -7.3 3.7 [2,] 1.6 7.8 1.0 0.3 -2.8 4.9 -9.3 -23.2 -8.4 -8.4 -7.3 3.7 [3,] 3.9 8.9 13.0 5.1 7.4 6.5 -2.3 -1.0 -7.6 -6.8 -4.3 10.6 [4,] 10.9 17.2 13.9 7.1 13.0 11.8 6.8 -0.6 11.7 2.2 5.7 12.1 [5,] 16.9 21.5 19.3 7.1 23.9 12.8 11.6 15.5 15.5 2.2 8.7 16.3 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.671357 2.257984 3.884892 0.2951371 -3.76424 1.624477 -13.67622 [2,] 10.471357 15.542016 22.115108 9.9048629 18.56424 11.375523 9.07622 [,8] [,9] [,10] [,11] [,12] [1,] -16.96910 -21.80261 -14.2899333 -13.485767 4.664581 [2,] 14.96910 6.60261 0.6899333 4.885767 16.535419 $out [1] 35.5 -50.9 -82.5 21.9 -48.4 -31.3 -16.8 $group [1] 4 7 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3, 1.60000000000001, 3.89999999999998, 10.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6b34n1257957281.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,] 117.10 148.30 193.80 190.70 159.70 163.4 [2,] 127.00 164.85 196.90 217.00 267.40 163.4 [3,] 135.25 174.45 205.85 232.95 327.85 163.4 [4,] 142.20 181.05 219.65 257.95 372.95 163.4 [5,] 153.40 190.60 229.70 287.60 413.60 163.4 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 128.3172 167.0611 195.4736 214.2724 279.7079 163.4 [2,] 142.1828 181.8389 216.2264 251.6276 375.9921 163.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(117.1, 127, 135.25, 142.2, 153.4, 148.3, 164.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/79x7p1257957281.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,] 185.2833 177.05 173.675 [2,] 197.5800 192.40 185.200 [3,] 212.0800 200.60 194.250 [4,] 228.2200 219.65 211.000 [5,] 240.4400 229.70 220.100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 198.1049 188.1711 182.4824 [2,] 226.0551 213.0289 206.0176 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(185.283333333333, 197.58, 212.08, 228.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c7yj1257957281.ps tmp/1c7yj1257957281.png") > system("convert tmp/2mis81257957281.ps tmp/2mis81257957281.png") > system("convert tmp/3y5wl1257957281.ps tmp/3y5wl1257957281.png") > system("convert tmp/44jvs1257957281.ps tmp/44jvs1257957281.png") > system("convert tmp/5jwta1257957281.ps tmp/5jwta1257957281.png") > system("convert tmp/6b34n1257957281.ps tmp/6b34n1257957281.png") > system("convert tmp/79x7p1257957281.ps tmp/79x7p1257957281.png") > > > proc.time() user system elapsed 1.863 1.474 2.479