R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(510,460,570,520,470,500,520,500,580,460,530,610,460,380,570,480,530,530,580,420,580,460,520,640,380,360,610,440,520,540,580,360,500,530,470,660,410,360,610,360,540,560,580,480,560,560,390,630,380,440,620,310,500,660,420,550,570,560,290,560,320,440,610,250,510,670,350,590,500,530,300,620,280,450,620,320,560,680,370,670,510,480,280,570,240,460,600,320,570,680,390,700,570,450,270,640,230,490,590,310,570,660,370,600,540,510,330,590) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 510 460 380 410 380 320 280 240 230 NA [2,] 460 380 360 360 440 440 450 460 490 NA [3,] 570 570 610 610 620 610 620 600 590 NA [4,] 520 480 440 360 310 250 320 320 310 NA [5,] 470 530 520 540 500 510 560 570 570 NA [6,] 500 530 540 560 660 670 680 680 660 NA [7,] 520 580 580 580 420 350 370 390 370 NA [8,] 500 420 360 480 550 590 670 700 600 NA [9,] 580 580 500 560 570 500 510 570 540 NA [10,] 460 460 530 560 560 530 480 450 510 NA [11,] 530 520 470 390 290 300 280 270 330 NA [12,] 610 640 660 630 560 620 570 640 590 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -50 -80 -20 -50 60 120 170 220 260 NA [2,] 110 190 250 250 180 170 170 140 100 NA [3,] -50 -90 -170 -250 -310 -360 -300 -280 -280 NA [4,] -50 50 80 180 190 260 240 250 260 NA [5,] 30 0 20 20 160 160 120 110 90 NA [6,] 20 50 40 20 -240 -320 -310 -290 -290 NA [7,] -20 -160 -220 -100 130 240 300 310 230 NA [8,] 80 160 140 80 20 -90 -160 -130 -60 NA [9,] -120 -120 30 0 -10 30 -30 -120 -30 NA [10,] 70 60 -60 -170 -270 -230 -200 -180 -180 NA [11,] 80 120 190 240 270 320 290 370 260 NA [12,] -150 -260 -250 -250 -240 -340 -330 -410 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/rcomp/tmp/19a1w1313508442.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/rcomp/tmp/2zty91313508442.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/rcomp/tmp/3b1cb1313508442.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/rcomp/tmp/44r7u1313508442.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,] 230 360 570 250 470 500 350 360 500 450 270 560 [2,] 280 380 590 310 510 540 370 480 510 460 290 590 [3,] 380 440 610 320 530 660 420 550 560 510 330 620 [4,] 410 460 610 440 560 670 580 600 570 530 470 640 [5,] 510 490 620 520 570 680 580 700 580 560 530 660 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 311.5333 397.8667 599.4667 251.5333 503.6667 591.5333 309.4 486.8 528.4 [2,] 448.4667 482.1333 620.5333 388.4667 556.3333 728.4667 530.6 613.2 591.6 [,10] [,11] [,12] [1,] 473.1333 235.2 593.6667 [2,] 546.8667 424.8 646.3333 $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(230, 280, 380, 410, 510, 360, 380, 440, 460, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/56dzy1313508442.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,] -80 100 -360 -50 0 -320 -220 -160 -120 -270 80 -410 [2,] -50 140 -300 80 20 -290 -100 -90 -120 -200 190 -335 [3,] 60 170 -280 190 90 -240 130 20 -30 -180 260 -255 [4,] 170 190 -170 250 120 20 240 80 0 -60 290 -245 [5,] 260 250 -50 260 160 50 310 160 30 70 370 -150 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -55.86667 143.6667 -348.4667 100.4667 37.33333 -403.26667 -49.06667 [2,] 175.86667 196.3333 -211.5333 279.5333 142.66667 -76.73333 309.06667 [,8] [,9] [,10] [,11] [,12] [1,] -69.53333 -93.2 -253.7333 207.3333 -305.2753 [2,] 109.53333 33.2 -106.2667 312.6667 -204.7247 $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(-80, -50, 60, 170, 260, 100, 140, 170, 190, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/64sp61313508442.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] [,7] [,8] [,9] [,10] [1,] 460 380 360 360 290 250 280 240 230 NA [2,] 485 460 410 400 400 335 345 355 350 NA [3,] 515 525 510 550 525 505 495 515 525 NA [4,] 550 575 560 570 565 600 595 620 590 NA [5,] 610 640 660 630 660 670 680 700 660 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 485.3531 472.5477 441.584 472.4619 449.7424 384.1317 380.9733 394.1317 [2,] 544.6469 577.4523 578.416 627.5381 600.2576 625.8683 609.0267 635.8683 [,9] [,10] [1,] 415.5344 NA [2,] 634.4656 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(460, 485, 515, 550, 610, 380, 460, 525, 575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ic191313508442.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,] 356.6667 320 345 [2,] 401.1111 400 400 [3,] 517.2222 520 515 [4,] 572.7778 585 570 [5,] 613.3333 660 615 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 438.9239 435.6203 437.4619 [2,] 595.5205 604.3797 592.5381 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(356.666666666667, 401.111111111111, 517.222222222222, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/19a1w1313508442.ps tmp/19a1w1313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/2zty91313508442.ps tmp/2zty91313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/3b1cb1313508442.ps tmp/3b1cb1313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/44r7u1313508442.ps tmp/44r7u1313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/56dzy1313508442.ps tmp/56dzy1313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/64sp61313508442.ps tmp/64sp61313508442.png",intern=TRUE)) character(0) > try(system("convert tmp/7ic191313508442.ps tmp/7ic191313508442.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.410 0.170 1.683