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(120.9,119.6,125.9,116.1,107.5,116.7,112.5,113,126.4,114.1,112.5,112.4,113.1,116.3,111.7,118.8,116.5,125.1,113.1,119.6,114.4,114,117.8,117,120.9,115,117.3,119.4,114.9,125.8,117.6,117.6,114.9,121.9,117,106.4,110.5,113.6,114.2,125.4,124.6,120.2,120.8,111.4,124.1,120.2,125.5,116,117,105.7,102,106.4,96.9,107.6,98.8,101.1,105.7,104.6,103.2,101.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,] 120.9 113.1 120.9 110.5 117.0 NA [2,] 119.6 116.3 115.0 113.6 105.7 NA [3,] 125.9 111.7 117.3 114.2 102.0 NA [4,] 116.1 118.8 119.4 125.4 106.4 NA [5,] 107.5 116.5 114.9 124.6 96.9 NA [6,] 116.7 125.1 125.8 120.2 107.6 NA [7,] 112.5 113.1 117.6 120.8 98.8 NA [8,] 113.0 119.6 117.6 111.4 101.1 NA [9,] 126.4 114.4 114.9 124.1 105.7 NA [10,] 114.1 114.0 121.9 120.2 104.6 NA [11,] 112.5 117.8 117.0 125.5 103.2 NA [12,] 112.4 117.0 106.4 116.0 101.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -1.3 3.2 -5.9 3.1 -11.3 NA [2,] 6.3 -4.6 2.3 0.6 -3.7 NA [3,] -9.8 7.1 2.1 11.2 4.4 NA [4,] -8.6 -2.3 -4.5 -0.8 -9.5 NA [5,] 9.2 8.6 10.9 -4.4 10.7 NA [6,] -4.2 -12.0 -8.2 0.6 -8.8 NA [7,] 0.5 6.5 0.0 -9.4 2.3 NA [8,] 13.4 -5.2 -2.7 12.7 4.6 NA [9,] -12.3 -0.4 7.0 -3.9 -1.1 NA [10,] -1.6 3.8 -4.9 5.3 -1.4 NA [11,] -0.1 -0.8 -10.6 -9.5 -1.6 NA [12,] 0.7 3.9 4.1 1.0 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/1gypj1293384130.ps",horizontal=F,onefile=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/2gypj1293384130.ps",horizontal=F,onefile=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/3gypj1293384130.ps",horizontal=F,onefile=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/487p41293384130.ps",horizontal=F,onefile=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,] 110.5 113.6 111.7 116.1 96.9 107.6 112.5 111.4 105.7 114.0 112.5 101.6 [2,] 113.1 113.6 111.7 116.1 107.5 116.7 112.5 111.4 114.4 114.0 112.5 106.4 [3,] 117.0 115.0 114.2 118.8 114.9 120.2 113.1 113.0 114.9 114.1 117.0 112.4 [4,] 120.9 116.3 117.3 119.4 116.5 125.1 117.6 117.6 124.1 120.2 117.8 116.0 [5,] 120.9 119.6 117.3 119.4 124.6 125.8 120.8 119.6 126.4 121.9 125.5 117.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 111.4885 113.0922 110.2431 116.4682 108.5406 114.2646 109.4964 108.6191 [2,] 122.5115 116.9078 118.1569 121.1318 121.2594 126.1354 116.7036 117.3809 [,9] [,10] [,11] [,12] [1,] 108.046 109.7191 113.2550 105.6167 [2,] 121.754 118.4809 120.7450 119.1833 $out [1] 105.7 125.9 102.0 125.4 106.4 98.8 101.1 104.6 103.2 $group [1] 2 3 3 4 4 7 8 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(110.5, 113.1, 117, 120.9, 120.9, 113.6, 113.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/587p41293384130.ps",horizontal=F,onefile=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,] -11.3 -4.6 2.1 -9.5 8.6 -12.0 0.0 -5.2 -3.9 -4.9 -10.6 0.70 [2,] -5.9 -3.7 2.1 -8.6 8.6 -8.8 0.0 -2.7 -3.9 -1.6 -9.5 0.85 [3,] -1.3 0.6 4.4 -4.5 9.2 -8.2 0.5 4.6 -1.1 -1.4 -1.6 2.45 [4,] 3.1 2.3 7.1 -2.3 10.7 -4.2 2.3 12.7 -0.4 3.8 -0.8 4.00 [5,] 3.2 6.3 11.2 -0.8 10.9 0.6 2.3 13.4 -0.4 5.3 -0.1 4.10 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.659377 -3.639585 0.8670126 -8.95156413 7.716145 -11.450348 -1.125174 [2,] 5.059377 4.839585 7.9329874 -0.04843587 10.683855 -4.949652 2.125174 [,8] [,9] [,10] [,11] [,12] [1,] -6.281601 -3.573091 -5.215626 -7.747398 -0.0385 [2,] 15.481601 1.373091 2.415626 4.547398 4.9385 $out [1] -9.8 -4.4 6.5 -9.4 -12.3 7.0 $group [1] 3 5 7 7 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11.3, -5.9, -1.30000000000001, 3.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/687p41293384130.ps",horizontal=F,onefile=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,] 107.50 111.70 114.90 110.50 96.90 NA [2,] 112.50 113.55 114.95 113.90 101.35 NA [3,] 115.10 116.40 117.45 120.20 103.90 NA [4,] 120.25 118.30 120.15 124.35 106.05 NA [5,] 126.40 125.10 125.80 125.50 107.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 111.5652 114.2335 115.0782 115.4337 101.7563 NA [2,] 118.6348 118.5665 119.8218 124.9663 106.0437 NA $out [1] 106.4 117.0 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(107.5, 112.5, 115.1, 120.25, 126.4, 111.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/71yop1293384130.ps",horizontal=F,onefile=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,] 110.68 112.4 111.200 [2,] 112.55 113.6 114.500 [3,] 114.59 114.9 115.100 [4,] 116.79 117.0 117.425 [5,] 119.08 120.2 120.900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 112.6561 113.3492 113.7659 [2,] 116.5239 116.4508 116.4341 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(110.68, 112.55, 114.59, 116.79, 119.08, 112.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1gypj1293384130.ps tmp/1gypj1293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/2gypj1293384130.ps tmp/2gypj1293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/3gypj1293384130.ps tmp/3gypj1293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/487p41293384130.ps tmp/487p41293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/587p41293384130.ps tmp/587p41293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/687p41293384130.ps tmp/687p41293384130.png",intern=TRUE)) character(0) > try(system("convert tmp/71yop1293384130.ps tmp/71yop1293384130.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.208 0.977 2.914