R version 2.10.1 (2009-12-14) 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(130,127,122,117,112,113,149,157,157,147,137,132,125,123,117,114,111,112,144,150,149,134,123,116,117,111,105,102,95,93,124,130,124,115,106,105,105,101,95,93,84,87,116,120,117,109,105,107,109,109,108,107,99,103,131,137,135,124,118,121,121,118,113,107,100,102,130,136,133,120,112,109,110) > 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,] 130 125 117 105 109 121 110 [2,] 127 123 111 101 109 118 NA [3,] 122 117 105 95 108 113 NA [4,] 117 114 102 93 107 107 NA [5,] 112 111 95 84 99 100 NA [6,] 113 112 93 87 103 102 NA [7,] 149 144 124 116 131 130 NA [8,] 157 150 130 120 137 136 NA [9,] 157 149 124 117 135 133 NA [10,] 147 134 115 109 124 120 NA [11,] 137 123 106 105 118 112 NA [12,] 132 116 105 107 121 109 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3 -2 -6 -4 0 -3 NA [2,] -5 -6 -6 -6 -1 -5 NA [3,] -5 -3 -3 -2 -1 -6 NA [4,] -5 -3 -7 -9 -8 -7 NA [5,] 1 1 -2 3 4 2 NA [6,] 36 32 31 29 28 28 NA [7,] 8 6 6 4 6 6 NA [8,] 0 -1 -6 -3 -2 -3 NA [9,] -10 -15 -9 -8 -11 -13 NA [10,] -10 -11 -9 -4 -6 -8 NA [11,] -5 -7 -1 2 3 -3 NA [12,] -7 1 0 2 0 1 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/yougetitorg/rcomp/tmp/1p0ve1305829433.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/2hv5l1305829433.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/31db51305829433.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/4sjmq1305829433.ps",horizontal=F,onefile=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,] 105.0 101.0 95.0 93 84.0 87.0 116.0 120.0 117 109 105 105.0 [2,] 109.5 109.0 105.0 102 95.0 93.0 124.0 130.0 124 115 106 107.0 [3,] 117.0 114.5 110.5 107 99.5 102.5 130.5 136.5 134 122 115 112.5 [4,] 123.0 123.0 117.0 114 111.0 112.0 144.0 150.0 149 134 123 121.0 [5,] 130.0 127.0 122.0 117 112.0 113.0 149.0 157.0 157 147 137 132.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 108.9380 105.4695 102.7596 99.25961 89.17948 90.24439 117.5994 123.5994 [2,] 125.0620 123.5305 118.2404 114.74039 109.82052 114.75561 143.4006 149.4006 [,9] [,10] [,11] [,12] [1,] 117.8742 109.7444 104.0345 103.4695 [2,] 150.1258 134.2556 125.9655 121.5305 $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(105, 109.5, 117, 123, 130, 101, 109, 114.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5ah9p1305829433.ps",horizontal=F,onefile=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,] -6 -6.0 -6 -9 -2.0 28 6 -6.0 -15.0 -11.0 -7 0.0 [2,] -4 -6.0 -5 -8 1.0 28 6 -3.0 -13.0 -10.0 -5 0.0 [3,] -3 -5.5 -3 -7 1.5 30 6 -2.5 -10.5 -8.5 -2 0.5 [4,] -2 -5.0 -2 -5 3.0 32 6 -1.0 -9.0 -6.0 2 1.0 [5,] 0 -5.0 -1 -3 4.0 36 6 0.0 -8.0 -4.0 3 2.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -4.290065 -6.145032 -4.935097 -8.935097 0.2099354 27.41987 6 -3.790065 [2,] -1.709935 -4.854968 -1.064903 -5.064903 2.7900646 32.58013 6 -1.209935 [,9] [,10] [,11] [,12] [1,] -13.080129 -11.080129 -6.515226 -0.1450323 [2,] -7.919871 -5.919871 2.515226 1.1450323 $out [1] -1 8 4 -7 $group [1] 2 7 7 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6, -4, -3, -2, 0, -6, -6, -5.5, -5, -5, -6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6ih0x1305829433.ps",horizontal=F,onefile=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,] 112.0 111 93.0 84.0 99.0 100.0 110 [2,] 119.5 115 103.5 94.0 107.5 108.0 110 [3,] 131.0 123 108.5 105.0 113.5 115.5 110 [4,] 148.0 139 120.5 112.5 127.5 125.5 110 [5,] 157.0 150 130.0 120.0 137.0 136.0 110 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 118.0010 112.0534 100.7462 96.56203 104.3779 107.5181 110 [2,] 143.9990 133.9466 116.2538 113.43797 122.6221 123.4819 110 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(112, 119.5, 131, 148, 157, 111, 115, 123, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/7w6a21305829433.ps",horizontal=F,onefile=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,] 100.1667 99.50 102.1250 [2,] 108.3333 108.75 109.3125 [3,] 115.8571 114.75 115.1250 [4,] 128.5833 126.25 128.5000 [5,] 138.3333 136.50 139.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 106.6210 106.7681 106.3735 [2,] 125.0933 122.7319 123.8765 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(100.166666666667, 108.333333333333, 115.857142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1p0ve1305829433.ps tmp/1p0ve1305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/2hv5l1305829433.ps tmp/2hv5l1305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/31db51305829433.ps tmp/31db51305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/4sjmq1305829433.ps tmp/4sjmq1305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/5ah9p1305829433.ps tmp/5ah9p1305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/6ih0x1305829433.ps tmp/6ih0x1305829433.png",intern=TRUE)) character(0) > try(system("convert tmp/7w6a21305829433.ps tmp/7w6a21305829433.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.510 1.240 2.122