R version 2.6.2 (2008-02-08) 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(68.4,70.6,83.9,90.1,90.6,87.1,90.8,94.1,99.8,96.8,87,96.3,107.1,115.2,106.1,89.5,91.3,97.6,100.7,104.6,94.7,101.8,102.5,105.3,110.3,109.8,117.3,118.8,131.3,125.9,133.1,147,145.8,164.4,149.8,137.7,151.7,156.8,180,180.4,170.4,191.6,199.5,218.2,217.5,205,194,199.3,219.3,211.1,215.2,240.2,242.2,240.7,255.4,253,218.2,203.7,205.6,215.6,188.5,202.9,214,230.3,230,241,259.6,247.8,270.3,289.7,322.7,315,320.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] 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,] 68.4 107.1 110.3 151.7 219.3 188.5 320.2 [2,] 70.6 115.2 109.8 156.8 211.1 202.9 NA [3,] 83.9 106.1 117.3 180.0 215.2 214.0 NA [4,] 90.1 89.5 118.8 180.4 240.2 230.3 NA [5,] 90.6 91.3 131.3 170.4 242.2 230.0 NA [6,] 87.1 97.6 125.9 191.6 240.7 241.0 NA [7,] 90.8 100.7 133.1 199.5 255.4 259.6 NA [8,] 94.1 104.6 147.0 218.2 253.0 247.8 NA [9,] 99.8 94.7 145.8 217.5 218.2 270.3 NA [10,] 96.8 101.8 164.4 205.0 203.7 289.7 NA [11,] 87.0 102.5 149.8 194.0 205.6 322.7 NA [12,] 96.3 105.3 137.7 199.3 215.6 315.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.2 8.1 -0.5 5.1 -8.2 14.4 NA [2,] 13.3 -9.1 7.5 23.2 4.1 11.1 NA [3,] 6.2 -16.6 1.5 0.4 25.0 16.3 NA [4,] 0.5 1.8 12.5 -10.0 2.0 -0.3 NA [5,] -3.5 6.3 -5.4 21.2 -1.5 11.0 NA [6,] 3.7 3.1 7.2 7.9 14.7 18.6 NA [7,] 3.3 3.9 13.9 18.7 -2.4 -11.8 NA [8,] 5.7 -9.9 -1.2 -0.7 -34.8 22.5 NA [9,] -3.0 7.1 18.6 -12.5 -14.5 19.4 NA [10,] -9.8 0.7 -14.6 -11.0 1.9 33.0 NA [11,] 9.3 2.8 -12.1 5.3 10.0 -7.7 NA [12,] 10.8 5.0 14.0 20.0 -27.1 5.2 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/1oghp1209312712.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/2e2ll1209312712.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/3ppw61209312712.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/4viih1209312712.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] [1,] 68.4 70.6 83.90 89.5 90.60 87.10 90.8 94.1 94.70 96.80 87.0 [2,] 108.7 109.8 106.10 90.1 91.30 97.60 100.7 104.6 99.80 101.80 102.5 [3,] 151.7 136.0 148.65 149.6 150.85 158.75 166.3 182.6 181.65 184.05 171.9 [4,] 203.9 202.9 214.00 230.3 230.00 240.70 255.4 247.8 218.20 205.00 205.6 [5,] 320.2 211.1 215.20 240.2 242.20 241.00 259.6 253.0 270.30 289.70 322.7 [,12] [1,] 96.3 [2,] 105.3 [3,] 168.5 [4,] 215.6 [5,] 315.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 94.8481 75.9475 79.05101 59.16647 61.38402 66.44588 66.5135 [2,] 208.5519 196.0525 218.24899 240.03353 240.31598 251.05412 266.0865 [,8] [,9] [,10] [,11] [,12] [1,] 90.23137 105.2782 117.4827 105.3972 97.35294 [2,] 274.96863 258.0218 250.6173 238.4028 239.64706 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(68.4, 108.7, 151.7, 203.9, 320.2, 70.6, 109.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vxhr1209312712.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,] -8.20 -9.1 -16.60 -0.30 -5.4 3.10 -11.8 -9.90 -14.50 -14.60 -12.10 5 [2,] -0.50 4.1 0.40 -0.30 -3.5 3.70 -2.4 -9.90 -12.50 -11.00 -7.70 5 [3,] 3.65 9.3 3.85 1.15 2.4 7.55 3.6 -0.95 2.05 -4.55 4.05 8 [4,] 8.10 13.3 16.30 2.00 11.0 14.70 13.9 5.70 18.60 1.90 9.30 14 [5,] 14.40 23.2 25.00 2.00 21.2 18.60 18.7 22.50 19.40 1.90 10.00 20 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.897278 3.365703 -6.406014 -0.3335743 -6.952968 0.4546447 -6.914026 [2,] 9.197278 15.234297 14.106014 2.6335743 11.752968 14.6453553 14.114026 [,8] [,9] [,10] [,11] [,12] [1,] -11.012504 -18.01050 -12.870917 -6.915549 2.194709 [2,] 9.112504 22.11050 3.770917 15.015549 13.805291 $out [1] 12.5 -10.0 -34.8 33.0 -27.1 $group [1] 4 4 8 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.20000000000002, -0.5, 3.65000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ka111209312712.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,] 83.90 89.50 109.80 151.70 203.70 188.5 320.2 [2,] 85.45 96.15 118.05 175.20 213.15 222.0 320.2 [3,] 90.35 102.15 132.20 192.80 218.75 244.4 320.2 [4,] 95.20 105.70 146.40 202.25 241.45 280.0 320.2 [5,] 99.80 115.20 164.40 218.20 255.40 322.7 320.2 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 85.90296 97.79418 119.2694 180.4623 205.8422 217.9458 320.2 [2,] 94.79704 106.50582 145.1306 205.1377 231.6578 270.8542 320.2 $out [1] 68.4 70.6 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(83.9, 85.45, 90.35, 95.2, 99.8, 89.5, 96.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70s2q1209312712.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,] 144.4000 136.000 151.2625 [2,] 158.7583 150.225 157.3750 [3,] 169.8417 162.525 159.7875 [4,] 176.9167 176.775 165.6062 [5,] 178.2000 184.050 177.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 161.5595 150.4154 156.0332 [2,] 178.1238 174.6346 163.5418 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(144.4, 158.758333333333, 169.841666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1oghp1209312712.ps tmp/1oghp1209312712.png") > system("convert tmp/2e2ll1209312712.ps tmp/2e2ll1209312712.png") > system("convert tmp/3ppw61209312712.ps tmp/3ppw61209312712.png") > system("convert tmp/4viih1209312712.ps tmp/4viih1209312712.png") > system("convert tmp/5vxhr1209312712.ps tmp/5vxhr1209312712.png") > system("convert tmp/6ka111209312712.ps tmp/6ka111209312712.png") > system("convert tmp/70s2q1209312712.ps tmp/70s2q1209312712.png") > > > proc.time() user system elapsed 1.448 0.968 1.727