R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(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,295881,293299,288576,286445,297584,300431,298522,292213,285383,277537,277891,302686,300653,296369,287224) > 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] 61 > (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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 288186 278506 250643 245098 288576 287224 [2,] 281477 269826 243422 246263 286445 NA [3,] 282656 265861 247105 255765 297584 NA [4,] 280190 269034 248541 264319 300431 NA [5,] 280408 264176 245039 268347 298522 NA [6,] 276836 255198 237080 273046 292213 NA [7,] 275216 253353 237085 273963 285383 NA [8,] 274352 246057 225554 267430 277537 NA [9,] 271311 235372 226839 271993 277891 NA [10,] 289802 258556 247934 292710 302686 NA [11,] 290726 260993 248333 295881 300653 NA [12,] 292300 254663 246969 293299 296369 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -6709 -8680 -7221 1165 -2131 NA [2,] 1179 -3965 3683 9502 11139 NA [3,] -2466 3173 1436 8554 2847 NA [4,] 218 -4858 -3502 4028 -1909 NA [5,] -3572 -8978 -7959 4699 -6309 NA [6,] -1620 -1845 5 917 -6830 NA [7,] -864 -7296 -11531 -6533 -7846 NA [8,] -3041 -10685 1285 4563 354 NA [9,] 18491 23184 21095 20717 24795 NA [10,] 924 2437 399 3171 -2033 NA [11,] 1574 -6330 -1364 -2582 -4284 NA [12,] -13794 -4020 -1871 -4723 -9145 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/rcomp/tmp/1sanf1290818216.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/rcomp/tmp/2sanf1290818216.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/rcomp/tmp/3sanf1290818216.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/rcomp/tmp/4k1mi1290818216.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] [1,] 245098 243422 247105 248541 245039 237080 237085 225554 226839 247934 [2,] 250643 246263 255765 264319 264176 255198 253353 246057 235372 258556 [3,] 282865 269826 265861 269034 268347 273046 273963 267430 271311 289802 [4,] 288186 281477 282656 280190 280408 276836 275216 274352 271993 292710 [5,] 288576 286445 297584 300431 298522 292213 285383 277537 277891 302686 [,11] [,12] [1,] 248333 246969 [2,] 260993 254663 [3,] 290726 292300 [4,] 295881 293299 [5,] 300653 296369 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 258648.6 244943.9 246859.9 257819.6 256877.5 257756.6 258514.7 247436.8 [2,] 307081.4 294708.1 284862.1 280248.4 279816.5 288335.4 289411.3 287423.2 [,9] [,10] [,11] [,12] [1,] 245434.7 265668.9 266074.2 264999.9 [2,] 297187.3 313935.1 315377.8 319600.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(245098, 250643, 282865, 288186, 288576, 243422, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5k1mi1290818216.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,] -8680 -3965 1436 -4858 -8978 -1845 -7846 -3041 18491 -2033 -6330 -13794 [2,] -7221 1179 1436 -3502 -7959 -1845 -7846 -3041 20717 399 -4284 -9145 [3,] -6709 3683 2847 -1909 -6309 -1620 -7296 354 21095 924 -2582 -4723 [4,] -2131 9502 3173 218 -3572 5 -6533 1285 23184 2437 -1364 -4020 [5,] 1165 11139 3173 4028 -3572 917 -6533 4563 24795 3171 1574 -1871 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -10305.581 -2198.011 1619.640 -4537.5426 -9408.843 -2927.2053 -8223.762 [2,] -3112.419 9564.011 4074.360 719.5426 -3209.157 -312.7947 -6368.238 [,8] [,9] [,10] [,11] [,12] [1,] -2702.741 19351.82 -516.0457 -4645.2646 -8344.312 [2,] 3410.741 22838.18 2364.0457 -518.7354 -1101.688 $out [1] -2466 8554 4699 -6830 -864 -11531 -10685 $group [1] 3 3 5 6 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8680, -7221, -6709, -2131, 1165, -3965, 1179, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6dt431290818216.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,] 271311.0 235372.0 225554.0 245098.0 277537.0 287224 [2,] 276026.0 254008.0 237082.5 260042.0 285914.0 287224 [3,] 280942.5 259774.5 246004.0 270170.0 294291.0 287224 [4,] 288994.0 267447.5 248133.5 283336.5 299476.5 287224 [5,] 292300.0 278506.0 250643.0 295881.0 302686.0 287224 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 275027.7 253644.7 240963.6 259545.2 288105.1 287224 [2,] 286857.3 265904.3 251044.4 280794.8 300476.9 287224 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(271311, 276026, 280942.5, 288994, 292300, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7dt431290818216.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,] 256681.2 265861.0 253682.5 [2,] 265243.3 268690.5 264077.2 [3,] 270546.3 272178.5 270732.5 [4,] 274879.4 286333.5 273379.1 [5,] 279317.2 292300.0 278437.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 266151.2 264131.4 266489.9 [2,] 274941.4 280225.6 274975.1 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(256681.2, 265243.3, 270546.3, 274879.416666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1sanf1290818216.ps tmp/1sanf1290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/2sanf1290818216.ps tmp/2sanf1290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/3sanf1290818216.ps tmp/3sanf1290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/4k1mi1290818216.ps tmp/4k1mi1290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/5k1mi1290818216.ps tmp/5k1mi1290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/6dt431290818216.ps tmp/6dt431290818216.png",intern=TRUE)) character(0) > try(system("convert tmp/7dt431290818216.ps tmp/7dt431290818216.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.070 1.390 3.427