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.9,95.3,100.4,97.3,82.3,97.0,93.5,90.9,107.8,110.9,98.1,106.5,93.4,95.7,109.0,97.6,92.7,107.5,91.7,95.7,111.4,106.0,104.8,108.7,97.3,97.1,106.1,98.6,98.5,105.5,86.2,98.3,111.3,105.0,105.7,103.5,96.9,98.1,111.7,94.7,104.2,109.7,91.3,102.6,114.2,115.8,113.5,107.1,104.5,101.9,116.0,102.0,108.1,112.9,104.5,109.1,113.4,123.9,117.7,108.3) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.9 93.4 97.3 96.9 104.5 NA [2,] 95.3 95.7 97.1 98.1 101.9 NA [3,] 100.4 109.0 106.1 111.7 116.0 NA [4,] 97.3 97.6 98.6 94.7 102.0 NA [5,] 82.3 92.7 98.5 104.2 108.1 NA [6,] 97.0 107.5 105.5 109.7 112.9 NA [7,] 93.5 91.7 86.2 91.3 104.5 NA [8,] 90.9 95.7 98.3 102.6 109.1 NA [9,] 107.8 111.4 111.3 114.2 113.4 NA [10,] 110.9 106.0 105.0 115.8 123.9 NA [11,] 98.1 104.8 105.7 113.5 117.7 NA [12,] 106.5 108.7 103.5 107.1 108.3 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.6 2.3 -0.2 1.2 -2.6 NA [2,] 5.1 13.3 9.0 13.6 14.1 NA [3,] -3.1 -11.4 -7.5 -17.0 -14.0 NA [4,] -15.0 -4.9 -0.1 9.5 6.1 NA [5,] 14.7 14.8 7.0 5.5 4.8 NA [6,] -3.5 -15.8 -19.3 -18.4 -8.4 NA [7,] -2.6 4.0 12.1 11.3 4.6 NA [8,] 16.9 15.7 13.0 11.6 4.3 NA [9,] 3.1 -5.4 -6.3 1.6 10.5 NA [10,] -12.8 -1.2 0.7 -2.3 -6.2 NA [11,] 8.4 3.9 -2.2 -6.4 -9.4 NA [12,] -13.1 -11.4 -6.6 -2.6 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/1qbs61228482701.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/21r741228482701.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/3agdo1228482701.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/4f1wv1228482701.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,] 95.9 95.3 100.4 97.3 82.3 105.5 91.3 90.9 111.3 105.0 98.1 106.5 [2,] 95.9 95.7 106.1 97.3 92.7 105.5 91.3 95.7 111.3 106.0 104.8 106.5 [3,] 96.9 97.1 109.0 97.6 98.5 107.5 91.7 98.3 111.4 110.9 105.7 107.1 [4,] 97.3 98.1 111.7 98.6 104.2 109.7 93.5 102.6 113.4 115.8 113.5 108.3 [5,] 97.3 98.1 116.0 98.6 108.1 112.9 93.5 109.1 114.2 123.9 117.7 108.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 95.91076 95.40417 105.0431 96.68142 90.37413 104.5323 90.14549 93.42448 [2,] 97.88924 98.79583 112.9569 98.51858 106.62587 110.4677 93.25451 103.17552 [,9] [,10] [,11] [,12] [1,] 109.9161 103.9753 99.5526 105.8281 [2,] 112.8839 117.8247 111.8474 108.3719 $out [1] 93.4 104.5 101.9 94.7 102.0 97.0 86.2 104.5 107.8 103.5 $group [1] 1 1 2 4 4 6 7 7 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.9, 95.9, 96.9, 97.3, 97.3, 95.3, 95.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5o6q21228482701.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,] -2.6 5.1 -17.0 -15.0 4.8 -19.3 -2.6 11.6 -6.3 -12.8 -9.4 -13.10 [2,] -0.6 9.0 -14.0 -4.9 5.5 -18.4 4.0 11.6 -5.4 -6.2 -6.4 -12.25 [3,] -0.2 13.3 -11.4 -0.1 7.0 -15.8 4.6 13.0 1.6 -2.3 -2.2 -9.00 [4,] 1.2 13.6 -7.5 6.1 14.7 -8.4 11.3 15.7 3.1 -1.2 3.9 -4.60 [5,] 2.3 14.1 -3.1 9.5 14.8 -3.5 12.1 16.9 10.5 0.7 8.4 -2.60 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.471875 10.04965 -15.992884 -7.872572 0.4993032 -22.865975 -0.5581616 [2,] 1.071875 16.55035 -6.807116 7.672572 13.5006968 -8.734025 9.7581616 [,8] [,9] [,10] [,11] [,12] [1,] 10.10295 -4.406079 -5.832987 -9.477954 -15.0435 [2,] 15.89705 7.606079 1.232987 5.077954 -2.9565 $out [1] 4.3 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2.59999999999999, -0.600000000000009, -0.200000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6oooy1228482701.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] [1,] 82.30 91.70 86.20 91.30 101.9 NA [2,] 94.40 94.55 97.80 97.50 104.5 NA [3,] 97.15 101.20 101.05 105.65 108.7 NA [4,] 103.45 108.10 105.60 112.60 114.7 NA [5,] 110.90 111.40 111.30 115.80 123.9 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 93.02223 95.01975 97.49237 98.76279 104.0477 NA [2,] 101.27777 107.38025 104.60763 112.53721 113.3523 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(82.3, 94.4, 97.15, 103.45, 110.9, 91.7, 94.55, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7pvdn1228482701.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,] 93.44 91.70 92.400 [2,] 97.61 97.35 97.425 [3,] 102.92 102.10 103.275 [4,] 108.30 108.25 109.025 [5,] 112.32 111.40 112.350 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 98.04422 97.12844 97.98416 [2,] 107.79578 107.07156 108.56584 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(93.44, 97.61, 102.92, 108.3, 112.32, 91.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qbs61228482701.ps tmp/1qbs61228482701.png") > system("convert tmp/21r741228482701.ps tmp/21r741228482701.png") > system("convert tmp/3agdo1228482701.ps tmp/3agdo1228482701.png") > system("convert tmp/4f1wv1228482701.ps tmp/4f1wv1228482701.png") > system("convert tmp/5o6q21228482701.ps tmp/5o6q21228482701.png") > system("convert tmp/6oooy1228482701.ps tmp/6oooy1228482701.png") > system("convert tmp/7pvdn1228482701.ps tmp/7pvdn1228482701.png") > > > proc.time() user system elapsed 1.868 1.481 2.282