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(103.1,103.2,102,101.7,100.4,100.9,99.3,98.3,98.5,98.1,97.1,97.5,101.9,100.2,98.6,98.1,98.2,99.1,100,99.7,99.7,99.3,97.9,97.6,94.7,95.8,97,99,101.9,103.9,105.1,104.9,105,104.6,105.1,105.7,115.6,120.3,121.9,121.7,118.9,113.4,114,117.5,120.9,125.1,124.7,128.2,149.7,163.6,173.9,164.5,154.2,147.9,159.3,170.3,170,174.2,190.8,179.9,240.8,241.9,241.1,239.6,220.8,209.3,209.9,228.3,242.1,226.4,231.5,229.7) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 103.1 101.9 94.7 115.6 149.7 240.8 NA [2,] 103.2 100.2 95.8 120.3 163.6 241.9 NA [3,] 102.0 98.6 97.0 121.9 173.9 241.1 NA [4,] 101.7 98.1 99.0 121.7 164.5 239.6 NA [5,] 100.4 98.2 101.9 118.9 154.2 220.8 NA [6,] 100.9 99.1 103.9 113.4 147.9 209.3 NA [7,] 99.3 100.0 105.1 114.0 159.3 209.9 NA [8,] 98.3 99.7 104.9 117.5 170.3 228.3 NA [9,] 98.5 99.7 105.0 120.9 170.0 242.1 NA [10,] 98.1 99.3 104.6 125.1 174.2 226.4 NA [11,] 97.1 97.9 105.1 124.7 190.8 231.5 NA [12,] 97.5 97.6 105.7 128.2 179.9 229.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1 -1.7 1.1 4.7 13.9 1.1 NA [2,] -1.2 -1.6 1.2 1.6 10.3 -0.8 NA [3,] -0.3 -0.5 2.0 -0.2 -9.4 -1.5 NA [4,] -1.3 0.1 2.9 -2.8 -10.3 -18.8 NA [5,] 0.5 0.9 2.0 -5.5 -6.3 -11.5 NA [6,] -1.6 0.9 1.2 0.6 11.4 0.6 NA [7,] -1.0 -0.3 -0.2 3.5 11.0 18.4 NA [8,] 0.2 0.0 0.1 3.4 -0.3 13.8 NA [9,] -0.4 -0.4 -0.4 4.2 4.2 -15.7 NA [10,] -1.0 -1.4 0.5 -0.4 16.6 5.1 NA [11,] 0.4 -0.3 0.6 3.5 -10.9 -1.8 NA [12,] 4.4 -2.9 9.9 21.5 60.9 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/rcomp/tmp/15r0c1209481910.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/284yx1209481910.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/3d7kg1209481910.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/44phs1209481910.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,] 94.70 95.80 97.00 98.1 98.2 99.10 99.30 98.3 98.50 98.10 97.1 [2,] 101.90 100.20 98.60 99.0 100.4 100.90 100.00 99.7 99.70 99.30 97.9 [3,] 109.35 111.75 111.95 111.7 110.4 108.65 109.55 111.2 112.95 114.85 114.9 [4,] 149.70 163.60 173.90 164.5 154.2 147.90 159.30 170.3 170.00 174.20 190.8 [5,] 149.70 241.90 241.10 239.6 220.8 209.30 209.90 228.3 242.10 226.40 231.5 [,12] [1,] 97.50 [2,] 97.60 [3,] 116.95 [4,] 179.90 [5,] 229.70 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 78.51746 70.85495 63.37907 69.45038 75.69726 78.33348 71.29958 [2,] 140.18254 152.64505 160.52093 153.94962 145.10274 138.96652 147.80042 [,8] [,9] [,10] [,11] [,12] [1,] 65.66072 67.60423 66.53708 54.9765 63.86384 [2,] 156.73928 158.29577 163.16292 174.8235 170.03616 $out [1] 240.8 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94.7, 101.9, 109.35, 149.7, 149.7, 95.8, 100.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5f9di1209481910.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,] -1.7 -1.6 -1.5 -18.80 -11.5 0.60 -1.00 -0.30 -0.4 -1.40 -1.80 -2.9 [2,] 0.1 -1.2 -1.5 -10.30 -6.3 0.60 -0.30 0.00 -0.4 -1.00 -1.80 4.4 [3,] 1.1 0.2 -0.4 -2.05 -2.5 0.75 1.65 0.15 -0.4 0.05 0.05 9.9 [4,] 4.7 1.6 -0.2 0.10 0.9 1.20 11.00 3.40 4.2 5.10 0.60 21.5 [5,] 4.7 1.6 -0.2 2.90 2.0 1.20 18.40 3.40 4.2 5.10 3.50 21.5 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.867149 -1.606090 -1.238542 -8.758336 -7.144233 0.3629806 -5.638865 [2,] 4.067149 2.006090 0.438542 4.658336 2.144233 1.1370194 8.938865 [,8] [,9] [,10] [,11] [,12] [1,] -2.04311 -3.367149 -3.884697 -1.498078 -2.182817 [2,] 2.34311 2.567149 3.984697 1.598078 21.982817 $out [1] 13.9 10.3 2.0 -9.4 -1.6 11.4 13.8 -15.7 16.6 -10.9 60.9 $group [1] 1 2 3 3 6 6 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.70000000000000, 0.100000000000009, 1.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uq8b1209481910.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,] 97.10 97.60 94.70 113.40 147.90 209.30 NA [2,] 98.20 98.15 98.00 116.55 156.75 223.60 NA [3,] 99.85 99.20 104.25 120.60 167.25 230.60 NA [4,] 101.85 99.85 105.05 123.30 174.05 240.95 NA [5,] 103.20 101.90 105.70 128.20 190.80 242.10 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.18521 98.42462 101.0344 117.5213 159.3594 222.6865 NA [2,] 101.51479 99.97538 107.4656 123.6787 175.1406 238.5135 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(97.1, 98.2, 99.85, 101.85, 103.2, 97.6, 98.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rkot1209481910.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,] 129.0833 108.650 120.4625 [2,] 133.3500 109.975 123.8500 [3,] 137.4667 111.725 127.9562 [4,] 139.2250 113.900 130.7250 [5,] 141.1833 116.950 136.9875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 134.7870 109.9348 124.8205 [2,] 140.1463 113.5152 131.0920 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(129.083333333333, 133.35, 137.466666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15r0c1209481910.ps tmp/15r0c1209481910.png") > system("convert tmp/284yx1209481910.ps tmp/284yx1209481910.png") > system("convert tmp/3d7kg1209481910.ps tmp/3d7kg1209481910.png") > system("convert tmp/44phs1209481910.ps tmp/44phs1209481910.png") > system("convert tmp/5f9di1209481910.ps tmp/5f9di1209481910.png") > system("convert tmp/6uq8b1209481910.ps tmp/6uq8b1209481910.png") > system("convert tmp/7rkot1209481910.ps tmp/7rkot1209481910.png") > > > proc.time() user system elapsed 1.435 0.947 1.802