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(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.0,248.3,258.4,254.9) > 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] 48 > (np <- floor(n / par1)) [1] 4 > 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] 4 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 114.9 205.5 156.4 169.1 NA [2,] 124.5 198.4 143.7 169.8 NA [3,] 142.2 198.5 153.6 195.5 NA [4,] 159.7 190.2 168.8 194.8 NA [5,] 165.2 180.7 185.8 204.5 NA [6,] 198.6 193.6 199.9 203.8 NA [7,] 207.8 192.8 205.4 204.8 NA [8,] 219.6 195.5 197.5 204.9 NA [9,] 239.6 197.2 199.6 240.0 NA [10,] 235.3 196.9 200.5 248.3 NA [11,] 218.5 178.9 193.7 258.4 NA [12,] 213.8 172.4 179.6 254.9 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 9.6 -7.1 -12.7 0.7 NA [2,] 17.7 0.1 9.9 25.7 NA [3,] 17.5 -8.3 15.2 -0.7 NA [4,] 5.5 -9.5 17.0 9.7 NA [5,] 33.4 12.9 14.1 -0.7 NA [6,] 9.2 -0.8 5.5 1.0 NA [7,] 11.8 2.7 -7.9 0.1 NA [8,] 20.0 1.7 2.1 35.1 NA [9,] -4.3 -0.3 0.9 8.3 NA [10,] -16.8 -18.0 -6.8 10.1 NA [11,] -4.7 -6.5 -14.1 -3.5 NA [12,] -8.3 -16.0 -10.5 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/1u22f1227946306.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/2xeev1227946306.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/3j3r11227946306.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/4tjx21227946306.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,] 114.90 124.50 142.20 159.70 165.20 193.60 192.8 195.50 197.2 196.9 178.90 [2,] 135.65 134.10 147.90 164.25 172.95 196.10 198.8 196.50 198.4 198.7 186.30 [3,] 162.75 156.75 174.55 179.50 183.25 199.25 205.1 201.20 219.6 217.9 206.10 [4,] 187.30 184.10 197.00 192.50 195.15 201.85 206.6 212.25 239.8 241.8 238.45 [5,] 205.50 198.40 198.50 194.80 204.50 203.80 207.8 219.60 240.0 248.3 258.40 [,12] [1,] 172.40 [2,] 176.00 [3,] 196.70 [4,] 234.35 [5,] 254.90 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 121.9465 117.25 135.761 157.1825 165.712 194.7075 198.938 188.7575 186.894 [2,] 203.5535 196.25 213.339 201.8175 200.788 203.7925 211.262 213.6425 252.306 [,10] [,11] [,12] [1,] 183.851 164.9015 150.6035 [2,] 251.949 247.2985 242.7965 $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(114.9, 135.65, 162.75, 187.3, 205.5, 124.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ppsb1227946306.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.30 -9.50 -0.70 -0.80 -7.90 1.70 -4.3 -18.00 -14.1 -16.00 [2,] -9.90 5.0 -4.50 -2.00 6.10 0.10 -3.90 1.90 -2.3 -17.40 -10.3 -13.25 [3,] -3.20 13.8 7.25 7.60 13.50 3.25 1.40 11.05 0.3 -11.80 -5.6 -10.50 [4,] 5.15 21.7 16.35 13.35 23.75 7.35 7.25 27.55 4.6 1.65 -4.1 -9.40 [5,] 9.60 25.7 17.50 17.00 33.40 9.20 11.80 35.10 8.3 10.10 -3.5 -8.30 $n [1] 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -15.0895 0.607 -9.2215 -4.5265 -0.4435 -2.4775 -7.4085 -9.2135 -5.151 [2,] 8.6895 26.993 23.7215 19.7265 27.4435 8.9775 10.2085 31.3135 5.751 [,10] [,11] [,12] [1,] -26.8495 -10.498 -14.012022 [2,] 3.2495 -0.702 -6.987978 $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(-12.7000000000000, -9.9, -3.19999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6dbwm1227946306.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] [1,] 114.90 172.40 143.70 169.10 NA [2,] 150.95 185.45 162.60 195.15 NA [3,] 203.20 194.55 189.75 204.65 NA [4,] 219.05 197.80 199.75 244.15 NA [5,] 239.60 205.50 205.40 258.40 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] 172.1391 188.9171 172.8056 182.3008 NA [2,] 234.2609 200.1829 206.6944 226.9992 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(114.9, 150.95, 203.2, 219.05, 239.6, 172.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7i8rt1227946306.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,] 159.1000 156.750 157.9250 [2,] 175.4125 177.025 176.2188 [3,] 200.8375 197.975 200.0250 [4,] 208.7750 205.600 206.5687 [5,] 220.2500 219.600 219.3500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 185.6206 184.9418 186.1822 [2,] 216.0544 211.0082 213.8678 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(159.1, 175.4125, 200.8375, 208.775, 220.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1u22f1227946306.ps tmp/1u22f1227946306.png") > system("convert tmp/2xeev1227946306.ps tmp/2xeev1227946306.png") > system("convert tmp/3j3r11227946306.ps tmp/3j3r11227946306.png") > system("convert tmp/4tjx21227946306.ps tmp/4tjx21227946306.png") > system("convert tmp/5ppsb1227946306.ps tmp/5ppsb1227946306.png") > system("convert tmp/6dbwm1227946306.ps tmp/6dbwm1227946306.png") > system("convert tmp/7i8rt1227946306.ps tmp/7i8rt1227946306.png") > > > proc.time() user system elapsed 1.866 1.459 2.121