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(267413,267366,264777,258863,254844,254868,277267,285351,286602,283042,276687,277915,277128,277103,275037,270150,267140,264993,287259,291186,292300,288186,281477,282656,280190,280408,276836,275216,274352,271311,289802,290726,292300,278506,269826,265861,269034,264176,255198,253353,246057,235372,258556,260993,254663,250643,243422,247105,248541,245039,237080,237085,225554,226839,247934,248333,246969,245098,246263,255765,264319,268347,273046,273963,267430,271993,292710) > 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] 67 > (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] 6 6 6 6 6 6 6 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 267413 277128 280190 269034 248541 264319 [2,] 267366 277103 280408 264176 245039 268347 [3,] 264777 275037 276836 255198 237080 273046 [4,] 258863 270150 275216 253353 237085 273963 [5,] 254844 267140 274352 246057 225554 267430 [6,] 254868 264993 271311 235372 226839 271993 [7,] 277267 287259 289802 258556 247934 292710 [8,] 285351 291186 290726 260993 248333 NA [9,] 286602 292300 292300 254663 246969 NA [10,] 283042 288186 278506 250643 245098 NA [11,] 276687 281477 269826 243422 246263 NA [12,] 277915 282656 265861 247105 255765 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -47 -25 218 -4858 -3502 4028 [2,] -2589 -2066 -3572 -8978 -7959 4699 [3,] -5914 -4887 -1620 -1845 5 917 [4,] -4019 -3010 -864 -7296 -11531 -6533 [5,] 24 -2147 -3041 -10685 1285 4563 [6,] 22399 22266 18491 23184 21095 20717 [7,] 8084 3927 924 2437 399 NA [8,] 1251 1114 1574 -6330 -1364 NA [9,] -3560 -4114 -13794 -4020 -1871 NA [10,] -6355 -6709 -8680 -7221 1165 NA [11,] 1228 1179 -3965 3683 9502 NA [12,] -787 -2466 3173 1436 8554 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/1e5i21262266404.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/2t39j1262266404.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/3iua41262266404.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/410ka1262266404.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] [1,] 248541.0 245039.0 237080.0 237085.0 225554 226839.0 247934 248333 246969 [2,] 264319.0 264176.0 255198.0 253353.0 246057 235372.0 258556 260993 254663 [3,] 268223.5 267856.5 268911.5 264506.5 260992 259930.5 282263 285351 286602 [4,] 277128.0 277103.0 275037.0 273963.0 267430 271311.0 289802 290726 292300 [5,] 280190.0 280408.0 276836.0 275216.0 274352 271993.0 292710 291186 292300 [,10] [,11] [,12] [1,] 245098 243422 247105 [2,] 250643 246263 255765 [3,] 278506 269826 265861 [4,] 283042 276687 277915 [5,] 288186 281477 282656 $n [1] 6 6 6 6 6 6 6 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 259961.3 259518.2 256114.7 251212.4 247205.7 236748.7 262108.3 264341.7 [2,] 276485.7 276194.8 281708.3 277800.6 274778.3 283112.3 302417.7 306360.3 [,9] [,10] [,11] [,12] [1,] 260007.8 255612.9 248328.5 250209.9 [2,] 313196.2 301399.1 291323.5 281512.1 $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(248541, 264319, 268223.5, 277128, 280190, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5dw6r1262266404.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,] -4858 -8978.0 -5914.0 -11531 -3041.0 18491.0 399 -1364 -4114 -7221 1179 [2,] -3502 -7959.0 -4887.0 -7296 -3041.0 20717.0 924 -1364 -4114 -7221 1179 [3,] -36 -3080.5 -1732.5 -5276 -1061.5 21680.5 2437 1114 -4020 -6709 1228 [4,] 218 -2066.0 5.0 -3010 1285.0 22399.0 3927 1251 -3560 -6355 3683 [5,] 4028 4699.0 917.0 -864 4563.0 23184.0 8084 1574 -3560 -6355 3683 [,12] [1,] -2466 [2,] -787 [3,] 1436 [4,] 3173 [5,] 8554 $n [1] 6 6 6 6 6 6 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2435.52 -6881.6753 -4887.998 -8040.608 -3851.910 20595.56 315.0878 [2,] 2363.52 720.6753 1422.998 -2511.392 1728.910 22765.44 4558.9122 [,8] [,9] [,10] [,11] [,12] [1,] -733.7524 -4411.455 -7320.913 -541.3201 -1362.126 [2,] 2961.7524 -3628.545 -6097.087 2997.3201 4234.126 $out [1] -10685 -6330 -13794 -1871 -8680 1165 -3965 9502 $group [1] 5 8 9 9 10 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4858, -3502, -36, 218, 4028, -8978, -7959, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uhtd1262266404.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,] 254844.0 264993.0 265861.0 235372.0 225554.0 264319.0 [2,] 261820.0 272593.5 272831.5 246581.0 237082.5 267888.5 [3,] 272050.0 279302.5 277671.0 254008.0 245680.5 271993.0 [4,] 280478.5 287722.5 285105.0 259774.5 248133.5 273504.5 [5,] 286602.0 292300.0 292300.0 269034.0 255765.0 273963.0 $n [1] 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 263539.7 272402.1 272073 247990.4 240640.1 268639.2 [2,] 280560.3 286202.9 283269 260025.6 250720.9 275346.8 $out [1] 292710 $group [1] 6 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(254844, 261820, 272050, 280478.5, 286602, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/734th1262266404.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,] 254229.3 259930.5 254988.8 [2,] 262486.7 265183.8 262672.6 [3,] 266466.8 268567.5 266841.2 [4,] 271830.9 280384.5 271790.0 [5,] 275588.0 286602.0 276200.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 262204.8 261634.3 262682.7 [2,] 270728.8 275500.7 270999.8 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(254229.333333333, 262486.666666667, 266466.783333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1e5i21262266404.ps tmp/1e5i21262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/2t39j1262266404.ps tmp/2t39j1262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/3iua41262266404.ps tmp/3iua41262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/410ka1262266404.ps tmp/410ka1262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/5dw6r1262266404.ps tmp/5dw6r1262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/6uhtd1262266404.ps tmp/6uhtd1262266404.png",intern=TRUE)) character(0) > try(system("convert tmp/734th1262266404.ps tmp/734th1262266404.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.244 0.982 3.886