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(97.8,107.4,117.5,105.6,97.4,99.5,98,104.3,100.6,101.1,103.9,96.9,95.5,108.4,117,103.8,100.8,110.6,104,112.6,107.3,98.9,109.8,104.9,102.2,123.9,124.9,112.7,121.9,100.6,104.3,120.4,107.5,102.9,125.6,107.5,108.8,128.4,121.1,119.5,128.7,108.7,105.5,119.8,111.3,110.6,120.1,97.5,107.7,127.3,117.2,119.8,116.2,111,112.4,130.6,109.1,118.8,123.9,101.6,112.8,128,129.6,125.8,119.5,115.7,113.6,129.7,112,116.8,127,112.1,114.2,121.1,131.6,125,120.4,117.7,117.5,120.6,127.5,112.3,124.5,115.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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.8 95.5 102.2 108.8 107.7 112.8 114.2 NA [2,] 107.4 108.4 123.9 128.4 127.3 128.0 121.1 NA [3,] 117.5 117.0 124.9 121.1 117.2 129.6 131.6 NA [4,] 105.6 103.8 112.7 119.5 119.8 125.8 125.0 NA [5,] 97.4 100.8 121.9 128.7 116.2 119.5 120.4 NA [6,] 99.5 110.6 100.6 108.7 111.0 115.7 117.7 NA [7,] 98.0 104.0 104.3 105.5 112.4 113.6 117.5 NA [8,] 104.3 112.6 120.4 119.8 130.6 129.7 120.6 NA [9,] 100.6 107.3 107.5 111.3 109.1 112.0 127.5 NA [10,] 101.1 98.9 102.9 110.6 118.8 116.8 112.3 NA [11,] 103.9 109.8 125.6 120.1 123.9 127.0 124.5 NA [12,] 96.9 104.9 107.5 97.5 101.6 112.1 115.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.6 12.9 21.7 19.6 19.6 15.2 6.9 NA [2,] 10.1 8.6 1.0 -7.3 -10.1 1.6 10.5 NA [3,] -11.9 -13.2 -12.2 -1.6 2.6 -3.8 -6.6 NA [4,] -8.2 -3.0 9.2 9.2 -3.6 -6.3 -4.6 NA [5,] 2.1 9.8 -21.3 -20.0 -5.2 -3.8 -2.7 NA [6,] -1.5 -6.6 3.7 -3.2 1.4 -2.1 -0.2 NA [7,] 6.3 8.6 16.1 14.3 18.2 16.1 3.1 NA [8,] -3.7 -5.3 -12.9 -8.5 -21.5 -17.7 6.9 NA [9,] 0.5 -8.4 -4.6 -0.7 9.7 4.8 -15.2 NA [10,] 2.8 10.9 22.7 9.5 5.1 10.2 12.2 NA [11,] -7.0 -4.9 -18.1 -22.6 -22.3 -14.9 -9.3 NA [12,] -1.4 -2.7 1.3 10.2 11.2 2.1 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/1ca611229614446.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/2y0qo1229614446.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/3vnr21229614446.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/42nxm1229614446.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] [1,] 95.5 107.40 117.00 103.80 97.40 99.50 98.00 104.30 107.30 98.90 [2,] 100.0 114.75 117.35 109.15 108.50 104.65 104.15 116.20 107.40 102.00 [3,] 107.7 123.90 121.10 119.50 119.50 110.60 105.50 120.40 109.10 110.60 [4,] 110.8 127.65 127.25 122.40 121.15 113.35 113.00 125.15 111.65 114.55 [5,] 114.2 128.40 131.60 125.80 128.70 117.70 117.50 130.60 112.00 118.80 [,11] [,12] [1,] 103.90 96.90 [2,] 114.95 99.55 [3,] 123.90 104.90 [4,] 125.05 109.80 [5,] 127.00 115.20 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.2504 116.1963 115.1879 111.5873 111.9456 105.4045 100.2149 115.0552 [2,] 114.1496 131.6037 127.0121 127.4127 127.0544 115.7955 110.7851 125.7448 [,9] [,10] [,11] [,12] [1,] 106.5620 103.1053 117.8684 98.77887 [2,] 111.6380 118.0947 129.9316 111.02113 $out [1] 100.6 127.5 $group [1] 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.5, 100, 107.7, 110.8, 114.2, 107.4, 114.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5q5gk1229614446.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] [1,] 6.90 -10.10 -13.20 -8.20 -21.3 -6.60 3.10 -21.5 -15.20 2.80 -22.60 [2,] 11.25 -3.15 -12.05 -5.45 -12.6 -2.65 7.45 -15.3 -6.50 7.30 -20.20 [3,] 15.20 1.60 -6.60 -3.60 -3.8 -1.50 14.30 -8.5 -0.70 10.20 -14.90 [4,] 19.60 9.35 -2.70 3.10 -0.3 0.60 16.10 -4.5 2.65 11.55 -8.15 [5,] 21.70 10.50 2.60 9.20 9.8 3.70 18.20 6.9 9.70 12.20 -4.90 [,12] [1,] -2.7 [2,] -1.4 [3,] 1.7 [4,] 10.2 [5,] 11.2 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.21351 -5.864798 -12.183669 -8.705922 -11.145362 -3.4408476 9.13436 [2,] 20.18649 9.064798 -1.016331 1.505922 3.545362 0.4408476 19.46564 [,8] [,9] [,10] [,11] [,12] [1,] -14.949586 -6.164232 7.661969 -22.096066 -5.782375 [2,] -2.050414 4.764232 12.738031 -7.703934 9.182375 $out [1] 22.7 $group [1] 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.89999999999999, 11.25, 15.2, 19.6, 21.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6awlu1229614446.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] [,8] [1,] 96.90 95.5 100.6 97.50 101.60 112.00 112.30 NA [2,] 97.90 102.3 103.6 108.75 110.05 113.20 116.35 NA [3,] 100.85 106.1 110.1 115.40 116.70 118.15 120.50 NA [4,] 104.95 110.2 122.9 120.60 121.85 127.50 124.75 NA [5,] 107.40 117.0 125.6 128.70 130.60 129.70 131.60 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.63445 102.4968 101.2971 109.9951 111.3179 111.6277 116.6687 NA [2,] 104.06555 109.7032 118.9029 120.8049 122.0821 124.6723 124.3313 NA $out [1] 117.5 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(96.9, 97.9, 100.85, 104.95, 107.4, 95.5, 102.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7verl1229614446.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,] 105.1000 104.90 104.6750 [2,] 108.3357 108.40 108.4250 [3,] 112.8714 115.05 112.1750 [4,] 119.4857 120.75 120.3375 [5,] 122.7000 123.90 122.3000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 107.7858 109.4171 106.7416 [2,] 117.9570 120.6829 117.6084 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.1, 108.335714285714, 112.871428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ca611229614446.ps tmp/1ca611229614446.png") > system("convert tmp/2y0qo1229614446.ps tmp/2y0qo1229614446.png") > system("convert tmp/3vnr21229614446.ps tmp/3vnr21229614446.png") > system("convert tmp/42nxm1229614446.ps tmp/42nxm1229614446.png") > system("convert tmp/5q5gk1229614446.ps tmp/5q5gk1229614446.png") > system("convert tmp/6awlu1229614446.ps tmp/6awlu1229614446.png") > system("convert tmp/7verl1229614446.ps tmp/7verl1229614446.png") > > > proc.time() user system elapsed 1.914 1.513 2.261