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(96.2,96.8,109.9,88,91.1,106.4,68.6,100.1,108,106,108.6,91.5,99.2,98,96.6,102.8,96.9,110,70.5,101.9,109.6,107.8,113,93.8,108,102.8,116.3,89.2,106.7,112.1,74.2,108.8,111.5,118.8,118.9,97.6,116.4,107.9,121.2,97.9,113.4,117.6,79.6,115.9,115.7,129.1,123.3,96.7,121.2,118.2,102.1,125.4,116.7,121.3,85.3,114.2,124.4,131,118.3,99.6) > 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,] 96.2 99.2 108.0 116.4 121.2 NA [2,] 96.8 98.0 102.8 107.9 118.2 NA [3,] 109.9 96.6 116.3 121.2 102.1 NA [4,] 88.0 102.8 89.2 97.9 125.4 NA [5,] 91.1 96.9 106.7 113.4 116.7 NA [6,] 106.4 110.0 112.1 117.6 121.3 NA [7,] 68.6 70.5 74.2 79.6 85.3 NA [8,] 100.1 101.9 108.8 115.9 114.2 NA [9,] 108.0 109.6 111.5 115.7 124.4 NA [10,] 106.0 107.8 118.8 129.1 131.0 NA [11,] 108.6 113.0 118.9 123.3 118.3 NA [12,] 91.5 93.8 97.6 96.7 99.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.6 -1.2 -5.2 -8.5 -3.0 NA [2,] 13.1 -1.4 13.5 13.3 -16.1 NA [3,] -21.9 6.2 -27.1 -23.3 23.3 NA [4,] 3.1 -5.9 17.5 15.5 -8.7 NA [5,] 15.3 13.1 5.4 4.2 4.6 NA [6,] -37.8 -39.5 -37.9 -38.0 -36.0 NA [7,] 31.5 31.4 34.6 36.3 28.9 NA [8,] 7.9 7.7 2.7 -0.2 10.2 NA [9,] -2.0 -1.8 7.3 13.4 6.6 NA [10,] 2.6 5.2 0.1 -5.8 -12.7 NA [11,] -17.1 -19.2 -21.3 -26.6 -18.7 NA [12,] 7.7 14.2 18.8 24.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/rcomp/tmp/1ycex1258144417.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/2bcif1258144417.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/35hew1258144417.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/4jnz61258144417.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,] 96.2 96.8 96.6 88.0 91.1 106.4 68.6 100.1 108.0 106.0 108.6 91.5 [2,] 99.2 98.0 102.1 89.2 96.9 110.0 70.5 101.9 109.6 107.8 113.0 93.8 [3,] 108.0 102.8 109.9 97.9 106.7 112.1 74.2 108.8 111.5 118.8 118.3 96.7 [4,] 116.4 107.9 116.3 102.8 113.4 117.6 79.6 114.2 115.7 129.1 118.9 97.6 [5,] 121.2 118.2 121.2 102.8 116.7 121.3 85.3 115.9 124.4 131.0 123.3 99.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 95.84652 95.80468 99.86632 88.29027 95.04114 106.7299 67.76996 [2,] 120.15348 109.79532 119.93368 107.50973 118.35886 117.4701 80.63004 [,8] [,9] [,10] [,11] [,12] [1,] 100.1089 107.1898 103.7495 114.1311 94.01493 [2,] 117.4911 115.8102 133.8505 122.4689 99.38507 $out [1] 125.4 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(96.2, 99.2, 108, 116.4, 121.2, 96.8, 98, 102.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5rmpf1258144417.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,] -8.5 -16.1 -27.1 -8.7 4.2 -38.0 28.9 -0.2 -2.0 -12.7 -21.3 7.70 [2,] -5.2 -1.4 -23.3 -5.9 4.6 -38.0 31.4 2.7 -1.8 -5.8 -21.3 10.95 [3,] -3.0 13.1 -21.9 3.1 5.4 -37.9 31.5 7.7 6.6 0.1 -19.2 16.50 [4,] -1.2 13.3 6.2 15.5 13.1 -37.8 34.6 7.9 7.3 2.6 -18.7 21.65 [5,] 0.6 13.5 23.3 17.5 15.3 -37.8 36.3 10.2 13.4 5.2 -17.1 24.50 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.8263899 2.713017 -42.744626 -12.02119 -0.6060786 -38.04132 29.23889 [2,] -0.1736101 23.486983 -1.055374 18.22119 11.4060786 -37.75868 33.76111 [,8] [,9] [,10] [,11] [,12] [1,] 4.025693 0.1699629 -5.835419 -21.03715 8.047 [2,] 11.374307 13.0300371 6.035419 -17.36285 24.953 $out [1] -39.5 -36.0 -26.6 $group [1] 6 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8.5, -5.2, -3, -1.20000000000000, 0.599999999999994, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o7u51258144417.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,] 68.60 93.80 89.2 79.6 99.60 NA [2,] 91.30 96.75 100.2 102.9 108.15 NA [3,] 98.45 100.55 108.4 115.8 118.25 NA [4,] 107.20 108.70 114.2 119.4 122.85 NA [5,] 109.90 113.00 118.9 129.1 131.00 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 91.1979 95.09952 102.0145 108.2742 111.5452 NA [2,] 105.7021 106.00048 114.7855 123.3258 124.9548 NA $out [1] 70.5 74.2 85.3 $group [1] 2 3 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(68.6, 91.3, 98.45, 107.2, 109.9, 93.8, 96.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72lpy1258144417.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,] 95.84 96.70 95.700 [2,] 102.70 100.35 99.475 [3,] 108.19 108.40 107.925 [4,] 113.66 111.80 113.225 [5,] 118.54 118.80 118.450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.1911 103.1776 101.6535 [2,] 113.1889 113.6224 114.1965 $out [1] 75.64 74.20 75.05 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(95.84, 102.7, 108.19, 113.66, 118.54, 96.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ycex1258144417.ps tmp/1ycex1258144417.png") > system("convert tmp/2bcif1258144417.ps tmp/2bcif1258144417.png") > system("convert tmp/35hew1258144417.ps tmp/35hew1258144417.png") > system("convert tmp/4jnz61258144417.ps tmp/4jnz61258144417.png") > system("convert tmp/5rmpf1258144417.ps tmp/5rmpf1258144417.png") > system("convert tmp/6o7u51258144417.ps tmp/6o7u51258144417.png") > system("convert tmp/72lpy1258144417.ps tmp/72lpy1258144417.png") > > > proc.time() user system elapsed 1.192 0.921 1.447