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(110.9,104.8,94.1,95.8,99.3,101.1,104,99,105.4,107.1,110.7,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,166.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,] 110.9 118.7 152.2 193.8 201.6 312.3 NA [2,] 104.8 126.5 169.4 197.0 210.5 333.8 NA [3,] 94.1 127.5 168.6 216.3 223.5 347.7 NA [4,] 95.8 134.6 161.1 221.4 223.8 383.2 NA [5,] 99.3 131.8 174.1 217.9 231.2 407.1 NA [6,] 101.1 135.9 179.0 229.7 244.0 413.6 NA [7,] 104.0 142.7 190.6 227.4 234.7 362.7 NA [8,] 99.0 141.7 190.0 204.2 250.2 321.9 NA [9,] 105.4 153.4 181.6 196.6 265.7 239.4 NA [10,] 107.1 145.0 174.8 198.8 287.6 191.0 NA [11,] 110.7 137.7 180.5 207.5 283.3 159.7 NA [12,] 117.1 148.3 196.8 190.7 295.4 166.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6.1 7.8 17.2 3.2 8.9 21.5 NA [2,] -10.7 1.0 -0.8 19.3 13.0 13.9 NA [3,] 1.7 7.1 -7.5 5.1 0.3 35.5 NA [4,] 3.5 -2.8 13.0 -3.5 7.4 23.9 NA [5,] 1.8 4.1 4.9 11.8 12.8 6.5 NA [6,] 2.9 6.8 11.6 -2.3 -9.3 -50.9 NA [7,] -5.0 -1.0 -0.6 -23.2 15.5 -40.8 NA [8,] 6.4 11.7 -8.4 -7.6 15.5 -82.5 NA [9,] 1.7 -8.4 -6.8 2.2 21.9 -48.4 NA [10,] 3.6 -7.3 5.7 8.7 -4.3 -31.3 NA [11,] 6.4 10.6 16.3 -16.8 12.1 7.0 NA [12,] 1.6 3.9 -3.0 10.9 16.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/184q11244306851.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/2w0p81244306851.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/31e361244306851.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/42zm61244306851.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,] 110.9 104.8 94.10 95.80 99.3 101.10 104.0 99.0 105.4 107.1 110.7 117.1 [2,] 118.7 126.5 127.50 134.60 131.8 135.90 142.7 141.7 153.4 145.0 137.7 148.3 [3,] 173.0 183.2 192.45 191.25 196.0 204.35 209.0 197.1 189.1 182.9 170.1 178.7 [4,] 201.6 210.5 223.50 223.80 231.2 244.00 234.7 250.2 239.4 198.8 207.5 196.8 [5,] 312.3 333.8 347.70 223.80 231.2 244.00 362.7 321.9 265.7 198.8 283.3 196.8 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 119.5268 129.0173 130.5269 133.7131 131.8838 134.622 149.6570 127.114 [2,] 226.4732 237.3827 254.3731 248.7869 260.1162 274.078 268.3430 267.086 [,9] [,10] [,11] [,12] [1,] 133.6272 148.1973 125.0767 147.4159 [2,] 244.5728 217.6027 215.1233 209.9841 $out [1] 383.2 407.1 413.6 287.6 295.4 $group [1] 4 5 6 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(110.9, 118.7, 173, 201.6, 312.3, 104.8, 126.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jvjp1244306851.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,] -6.10 -10.7 -7.5 -3.50 1.8 -9.3 -40.8 -8.4 -8.40 -7.30 6.4 -3.0 [2,] 3.20 -0.8 0.3 -2.80 4.1 -9.3 -23.2 -8.4 -8.40 -7.30 6.4 1.6 [3,] 8.35 7.0 3.4 5.45 5.7 0.3 -3.0 -0.6 -2.55 -0.35 8.8 3.9 [4,] 17.20 13.9 7.1 13.00 11.8 6.8 -0.6 11.7 2.20 5.70 12.1 10.9 [5,] 21.50 19.3 7.1 23.90 12.8 11.6 15.5 15.5 2.20 8.70 16.3 16.9 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.6804522 -2.481975 -0.9862196 -4.74151 0.7332513 -10.08502 -17.57773 [2,] 17.3804522 16.481975 7.7862196 15.64151 10.6667487 10.68502 11.57773 [,8] [,9] [,10] [,11] [,12] [1,] -13.56515 -9.387342 -8.73542 5.123316 -2.671357 [2,] 12.36515 4.287342 8.03542 12.476684 10.471357 $out [1] 35.5 -50.9 -82.5 21.9 -48.4 -31.3 -16.8 $group [1] 3 6 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.10000000000001, 3.19999999999999, 8.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qjm91244306851.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,] 94.10 118.70 152.2 190.70 201.60 159.70 NA [2,] 99.15 129.65 169.0 196.80 223.65 215.20 NA [3,] 104.40 136.80 176.9 205.85 239.35 327.85 NA [4,] 108.90 143.85 185.8 219.65 274.50 372.95 NA [5,] 117.10 153.40 196.8 229.70 295.40 413.60 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.95296 130.3233 169.2374 195.4280 216.1570 255.8992 NA [2,] 108.84704 143.2767 184.5626 216.2720 262.5430 399.8008 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(94.1, 99.15, 104.4, 108.9, 117.1, 118.7, 129.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78yhy1244306851.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,] 179.9000 170.100 163.3625 [2,] 184.9417 180.800 173.1313 [3,] 193.3167 190.175 180.9750 [4,] 206.7750 196.550 193.6625 [5,] 217.2167 209.000 196.2375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 183.3583 182.9913 171.6106 [2,] 203.2750 197.3587 190.3394 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(179.9, 184.941666666667, 193.316666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/184q11244306851.ps tmp/184q11244306851.png") > system("convert tmp/2w0p81244306851.ps tmp/2w0p81244306851.png") > system("convert tmp/31e361244306851.ps tmp/31e361244306851.png") > system("convert tmp/42zm61244306851.ps tmp/42zm61244306851.png") > system("convert tmp/5jvjp1244306851.ps tmp/5jvjp1244306851.png") > system("convert tmp/6qjm91244306851.ps tmp/6qjm91244306851.png") > system("convert tmp/78yhy1244306851.ps tmp/78yhy1244306851.png") > > > proc.time() user system elapsed 1.180 0.928 1.594