R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(240,150,290,210,240,240,310,310,190,230,260,320,270,250,240,250,230,230,240,300,190,270,300,330,230,260,300,330,190,260,240,270,170,230,270,320,190,300,310,360,170,280,270,260,280,300,320,370,210,310,290,450,190,290,280,310,340,220,390,410,250,310,280,450,210,390,300,310,370,250,440,360,290,300,340,600,220,410,360,250,410,290,470,350,330,250,270,580,260,450,320,240,420,380,400,370,300,310,280,560,280,480,320,170,420,310,470,420) > 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,] 240 270 230 190 210 250 290 330 300 NA [2,] 150 250 260 300 310 310 300 250 310 NA [3,] 290 240 300 310 290 280 340 270 280 NA [4,] 210 250 330 360 450 450 600 580 560 NA [5,] 240 230 190 170 190 210 220 260 280 NA [6,] 240 230 260 280 290 390 410 450 480 NA [7,] 310 240 240 270 280 300 360 320 320 NA [8,] 310 300 270 260 310 310 250 240 170 NA [9,] 190 190 170 280 340 370 410 420 420 NA [10,] 230 270 230 300 220 250 290 380 310 NA [11,] 260 300 270 320 390 440 470 400 470 NA [12,] 320 330 320 370 410 360 350 370 420 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -90 -20 30 110 100 60 10 -80 10 NA [2,] 140 -10 40 10 -20 -30 40 20 -30 NA [3,] -80 10 30 50 160 170 260 310 280 NA [4,] 30 -20 -140 -190 -260 -240 -380 -320 -280 NA [5,] 0 0 70 110 100 180 190 190 200 NA [6,] 70 10 -20 -10 -10 -90 -50 -130 -160 NA [7,] 0 60 30 -10 30 10 -110 -80 -150 NA [8,] -120 -110 -100 20 30 60 160 180 250 NA [9,] 40 80 60 20 -120 -120 -120 -40 -110 NA [10,] 30 30 40 20 170 190 180 20 160 NA [11,] 60 30 50 50 20 -80 -120 -30 -50 NA [12,] -50 -100 -130 -160 -160 -70 -20 -70 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/wessaorg/rcomp/tmp/18cgg1313599114.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/wessaorg/rcomp/tmp/2a7tz1313599114.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/wessaorg/rcomp/tmp/377571313599114.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/wessaorg/rcomp/tmp/4oz2r1313599114.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,] 190 250 270 210 170 230 240 170 170 220 260 320 [2,] 230 250 280 330 190 260 270 250 190 230 300 330 [3,] 250 300 290 450 220 290 300 270 340 270 390 360 [4,] 290 310 300 560 240 410 320 310 410 300 440 370 [5,] 330 310 310 600 280 480 360 310 420 380 470 420 $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,] 218.4 268.4 279.4667 328.8667 193.6667 211 273.6667 238.4 224.1333 [2,] 281.6 331.6 300.5333 571.1333 246.3333 369 326.3333 301.6 455.8667 [,10] [,11] [,12] [1,] 233.1333 316.2667 338.9333 [2,] 306.8667 463.7333 381.0667 $out [1] 150 240 340 $group [1] 2 3 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(190, 230, 250, 290, 330, 250, 250, 300, 310, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5c1s61313599114.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,] -90 -30 -80 -380 0 -160 -150 -120 -120 20 -120 -160 [2,] -20 -20 30 -280 70 -90 -80 -100 -120 30 -50 -145 [3,] 10 10 160 -240 110 -20 0 30 -40 40 20 -85 [4,] 60 40 260 -140 190 -10 30 160 40 170 50 -60 [5,] 110 40 310 30 200 70 60 250 80 190 60 -20 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -32.13333 -21.6 38.86667 -313.7333 46.8 -62.13333 -57.93333 -106.9333 [2,] 52.13333 41.6 281.13333 -166.2667 173.2 22.13333 57.93333 166.9333 [,9] [,10] [,11] [,12] [1,] -124.26667 -33.73333 -32.66667 -132.48222 [2,] 44.26667 113.73333 72.66667 -37.51778 $out [1] 140 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-90, -20, 10, 60, 110, -30, -20, 10, 40, 40, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6s0e01313599114.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,] 150 190 170 190 190 210 220 240 170 NA [2,] 220 235 230 265 250 265 290 265 290 NA [3,] 240 250 260 290 300 310 345 350 315 NA [4,] 300 285 285 315 365 380 410 410 445 NA [5,] 320 330 330 370 450 450 470 580 560 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 203.5115 227.1947 234.9141 267.1947 247.5477 257.5477 290.2672 283.8645 [2,] 276.4885 272.8053 285.0859 312.8053 352.4523 362.4523 399.7328 416.1355 [,9] [,10] [1,] 244.3035 NA [2,] 385.6965 NA $out [1] 170 600 $group [1] 4 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(150, 220, 240, 300, 320, 190, 235, 250, 285, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7xc721313599114.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,] 221.1111 220 215.0 [2,] 270.0000 270 272.5 [3,] 291.1111 295 292.5 [4,] 348.8889 350 342.5 [5,] 421.1111 450 445.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 255.1294 258.5115 260.5725 [2,] 327.0929 331.4885 324.4275 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(221.111111111111, 270, 291.111111111111, 348.888888888889, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18cgg1313599114.ps tmp/18cgg1313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/2a7tz1313599114.ps tmp/2a7tz1313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/377571313599114.ps tmp/377571313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/4oz2r1313599114.ps tmp/4oz2r1313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/5c1s61313599114.ps tmp/5c1s61313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/6s0e01313599114.ps tmp/6s0e01313599114.png",intern=TRUE)) character(0) > try(system("convert tmp/7xc721313599114.ps tmp/7xc721313599114.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.553 0.340 1.894