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(95.4,101.2,101.5,101.9,101.7,100.1,97.4,96.5,99.2,102.2,105.3,111.1,114.9,124.5,142.2,159.7,165.2,198.6,207.8,219.6,239.6,235.3,218.5,213.8,205.5,198.4,198.5,190.2,180.7,193.6,192.8,195.5,197.2,196.9,178.9,172.4,156.4,143.7,153.6,168.8,185.8,199.9,205.4,197.5,199.6,200.5,193.7,179.6,169.1,169.8,195.5,194.8,204.5,203.8,204.8,204.9,240,248.3,258.4,254.9,288.3,333.6,346.3,357.5,490.7,468.2,471.2,517.1,609.2,682,614,554.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] 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,] 95.4 114.9 205.5 156.4 169.1 288.3 NA [2,] 101.2 124.5 198.4 143.7 169.8 333.6 NA [3,] 101.5 142.2 198.5 153.6 195.5 346.3 NA [4,] 101.9 159.7 190.2 168.8 194.8 357.5 NA [5,] 101.7 165.2 180.7 185.8 204.5 490.7 NA [6,] 100.1 198.6 193.6 199.9 203.8 468.2 NA [7,] 97.4 207.8 192.8 205.4 204.8 471.2 NA [8,] 96.5 219.6 195.5 197.5 204.9 517.1 NA [9,] 99.2 239.6 197.2 199.6 240.0 609.2 NA [10,] 102.2 235.3 196.9 200.5 248.3 682.0 NA [11,] 105.3 218.5 178.9 193.7 258.4 614.0 NA [12,] 111.1 213.8 172.4 179.6 254.9 554.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.8 9.6 -7.1 -12.7 0.7 45.3 NA [2,] 0.3 17.7 0.1 9.9 25.7 12.7 NA [3,] 0.4 17.5 -8.3 15.2 -0.7 11.2 NA [4,] -0.2 5.5 -9.5 17.0 9.7 133.2 NA [5,] -1.6 33.4 12.9 14.1 -0.7 -22.5 NA [6,] -2.7 9.2 -0.8 5.5 1.0 3.0 NA [7,] -0.9 11.8 2.7 -7.9 0.1 45.9 NA [8,] 2.7 20.0 1.7 2.1 35.1 92.1 NA [9,] 3.0 -4.3 -0.3 0.9 8.3 72.8 NA [10,] 3.1 -16.8 -18.0 -6.8 10.1 -68.0 NA [11,] 5.8 -4.7 -6.5 -14.1 -3.5 -59.8 NA [12,] 3.8 -8.3 -16.0 -10.5 33.4 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/freestat/rcomp/tmp/15ar91227947703.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/21yo91227947703.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/3pzwo1227947703.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/4i1cv1227947703.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,] 95.40 101.20 101.50 159.7 165.20 193.60 192.8 195.5 197.2 196.9 105.3 [2,] 114.90 124.50 142.20 159.7 165.20 193.60 192.8 195.5 197.2 196.9 178.9 [3,] 162.75 156.75 174.55 179.5 183.25 199.25 205.1 201.2 219.6 217.9 206.1 [4,] 205.50 198.40 198.50 194.8 204.50 203.80 207.8 219.6 240.0 248.3 258.4 [5,] 288.30 198.40 198.50 194.8 204.50 203.80 207.8 219.6 240.0 248.3 258.4 [,12] [1,] 111.1 [2,] 172.4 [3,] 196.7 [4,] 254.9 [5,] 254.9 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.3101 109.0821 138.2347 156.8594 157.9002 192.6707 195.4245 185.6547 [2,] 221.1899 204.4179 210.8653 202.1406 208.5998 205.8293 214.7755 216.7453 [,9] [,10] [,11] [,12] [1,] 191.9926 184.7453 154.8199 143.4848 [2,] 247.2074 251.0547 257.3801 249.9152 $out [1] 333.6 346.3 101.9 357.5 101.7 490.7 100.1 468.2 97.4 471.2 96.5 517.1 [13] 99.2 609.2 102.2 682.0 614.0 554.2 $group [1] 2 3 4 4 5 5 6 6 7 7 8 8 9 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(95.4, 114.9, 162.75, 205.5, 288.3, 101.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5hfpx1227947703.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,] -12.70 0.1 -8.3 -9.5 -22.5 -2.7 -7.9 1.70 -4.30 -18.0 -14.1 -16.0 [2,] -7.10 0.3 -0.7 -0.2 -1.6 -0.8 -0.9 2.10 -0.30 -18.0 -14.1 -10.5 [3,] 3.25 11.3 5.8 7.6 6.1 2.0 1.4 11.35 1.95 -11.8 -5.6 -8.3 [4,] 9.60 17.7 15.2 17.0 14.1 5.5 11.8 35.10 8.30 3.1 -3.5 3.8 [5,] 9.60 25.7 17.5 17.0 33.4 9.2 11.8 35.10 8.30 10.1 5.8 3.8 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.52204 0.076438 -4.456014 -3.494556 -4.027007 -2.063703 -6.79191 [2,] 14.02204 22.523562 16.056014 18.694556 16.227007 6.063703 9.59191 [,8] [,9] [,10] [,11] [,12] [1,] -9.936066 -3.597278 -25.410182 -12.437342 -18.404344 [2,] 32.636066 7.497278 1.810182 1.237342 1.804344 $out [1] 45.3 133.2 45.9 92.1 72.8 -68.0 -59.8 33.4 $group [1] 1 4 7 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(-12.7000000000000, -7.1, 3.25000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6kgsc1227947703.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,] 95.40 114.90 172.40 143.70 169.10 288.30 NA [2,] 98.30 150.95 185.45 162.60 195.15 351.90 NA [3,] 101.35 203.20 194.55 189.75 204.65 480.95 NA [4,] 102.05 219.05 197.80 199.75 244.15 581.70 NA [5,] 105.30 239.60 205.50 205.40 258.40 682.00 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.6396 172.1391 188.9171 172.8056 182.3008 376.1367 NA [2,] 103.0604 234.2609 200.1829 206.6944 226.9992 585.7633 NA $out [1] 111.1 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(95.4, 98.3, 101.35, 102.05, 105.3, 114.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7fygk1227947703.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,] 171.6000 156.750 160.2750 [2,] 192.5417 177.025 174.6062 [3,] 228.6333 197.975 200.1687 [4,] 254.5667 205.600 212.4625 [5,] 277.5333 219.600 221.4250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 200.3433 184.9418 182.9023 [2,] 256.9234 211.0082 217.4352 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(171.6, 192.541666666667, 228.633333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15ar91227947703.ps tmp/15ar91227947703.png") > system("convert tmp/21yo91227947703.ps tmp/21yo91227947703.png") > system("convert tmp/3pzwo1227947703.ps tmp/3pzwo1227947703.png") > system("convert tmp/4i1cv1227947703.ps tmp/4i1cv1227947703.png") > system("convert tmp/5hfpx1227947703.ps tmp/5hfpx1227947703.png") > system("convert tmp/6kgsc1227947703.ps tmp/6kgsc1227947703.png") > system("convert tmp/7fygk1227947703.ps tmp/7fygk1227947703.png") > > > proc.time() user system elapsed 1.847 1.449 2.061