R version 2.10.1 (2009-12-14) 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(190.2,180.7,193.6,192.8,195.5,197.2,196.9,178.9,172.4,156.4,143.7,153.6,168.8,185.8,199.9,205.4,197.5,199.6,200.5,193.7,179.6,169.1,169.8,195.5,194.8,204.5,203.8,204.8,204.9,240,248.3,258.4,254.9,288.3,333.6,346.3,357.5,490.7,468.2,471.2,517.1,609.2,682,614,554.2,406.8,348.6,298.8,313.7,282.1,232.9,239.3,241.9,265.7,276,271.5,254.6,269.9,293.5,306.1,365.4,347.9,352.1,377.9,377.4,372.2,362.5,341.9,354.8,369.2,406.7,454.7) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 190.2 168.8 194.8 357.5 313.7 365.4 NA [2,] 180.7 185.8 204.5 490.7 282.1 347.9 NA [3,] 193.6 199.9 203.8 468.2 232.9 352.1 NA [4,] 192.8 205.4 204.8 471.2 239.3 377.9 NA [5,] 195.5 197.5 204.9 517.1 241.9 377.4 NA [6,] 197.2 199.6 240.0 609.2 265.7 372.2 NA [7,] 196.9 200.5 248.3 682.0 276.0 362.5 NA [8,] 178.9 193.7 258.4 614.0 271.5 341.9 NA [9,] 172.4 179.6 254.9 554.2 254.6 354.8 NA [10,] 156.4 169.1 288.3 406.8 269.9 369.2 NA [11,] 143.7 169.8 333.6 348.6 293.5 406.7 NA [12,] 153.6 195.5 346.3 298.8 306.1 454.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.5 17.0 9.7 133.2 -31.6 -17.5 NA [2,] 12.9 14.1 -0.7 -22.5 -49.2 4.2 NA [3,] -0.8 5.5 1.0 3.0 6.4 25.8 NA [4,] 2.7 -7.9 0.1 45.9 2.6 -0.5 NA [5,] 1.7 2.1 35.1 92.1 23.8 -5.2 NA [6,] -0.3 0.9 8.3 72.8 10.3 -9.7 NA [7,] -18.0 -6.8 10.1 -68.0 -4.5 -20.6 NA [8,] -6.5 -14.1 -3.5 -59.8 -16.9 12.9 NA [9,] -16.0 -10.5 33.4 -147.4 15.3 14.4 NA [10,] -12.7 0.7 45.3 -58.2 23.6 37.5 NA [11,] 9.9 25.7 12.7 -49.8 12.6 48.0 NA [12,] 15.2 -0.7 11.2 14.9 59.3 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/yougetitorg/rcomp/tmp/1lph61304950151.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/yougetitorg/rcomp/tmp/2kvrq1304950151.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/yougetitorg/rcomp/tmp/38ocv1304950151.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/yougetitorg/rcomp/tmp/4jseq1304950151.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] [1,] 168.80 180.7 193.60 192.80 195.5 197.20 196.90 178.90 172.40 156.4 143.70 [2,] 190.20 185.8 199.90 204.80 197.5 199.60 200.50 193.70 179.60 169.1 169.80 [3,] 254.25 243.3 218.35 222.35 223.4 252.85 262.15 264.95 254.75 279.1 313.55 [4,] 357.50 347.9 352.10 377.90 377.4 372.20 362.50 341.90 354.80 369.2 348.60 [5,] 365.40 490.7 468.20 471.20 517.1 609.20 362.50 341.90 554.20 406.8 406.70 [,12] [1,] 153.60 [2,] 195.50 [3,] 302.45 [4,] 346.30 [5,] 454.70 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 146.3361 138.7403 120.1761 110.6949 107.3587 141.5174 157.6548 169.3562 [2,] 362.1639 347.8597 316.5239 334.0051 339.4413 364.1826 366.6452 360.5438 [,9] [,10] [,11] [,12] [1,] 141.7403 150.0290 198.2182 205.1791 [2,] 367.7597 408.1710 428.8818 399.7209 $out [1] 682 614 $group [1] 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(168.8, 190.2, 254.25, 357.5, 365.4, 180.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5iszo1304950151.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,] -31.6 -49.20 -0.80 -0.50 -5.20 -9.7 -20.6 -16.9 -16.00 -58.20 9.90 11.2 [2,] -17.5 -22.50 1.00 -0.50 1.70 -0.3 -20.6 -16.9 -16.00 -12.70 9.90 11.2 [3,] 0.1 1.75 4.25 1.35 12.95 4.6 -12.4 -10.3 1.95 12.15 12.65 14.9 [4,] 17.0 12.90 6.40 2.70 35.10 10.3 -4.5 -3.5 15.30 37.50 25.70 15.2 [5,] 17.0 14.10 6.40 2.70 35.10 10.3 10.1 12.9 33.40 45.30 48.00 15.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -22.15361 -21.08414 0.7668256 -0.7141034 -8.594079 -2.237342 -22.78502 [2,] 22.35361 24.58414 7.7331744 3.4141034 34.494079 11.437342 -2.01498 [,8] [,9] [,10] [,11] [,12] [1,] -18.943433 -18.23951 -20.23062 2.458490 12.07361 [2,] -1.656567 22.13951 44.53062 22.841510 17.72639 $out [1] 133.2 25.8 -7.9 45.9 92.1 72.8 -68.0 -59.8 -147.4 -49.8 [11] -0.7 59.3 $group [1] 1 3 4 4 5 6 7 8 9 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-31.6000000000000, -17.5, 0.0999999999999943, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/626761304950151.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] [1,] 143.70 168.80 194.80 298.80 232.90 341.90 NA [2,] 164.40 174.70 204.65 382.15 248.25 353.45 NA [3,] 185.45 194.60 244.15 480.95 270.70 367.30 NA [4,] 194.55 199.75 273.35 581.70 287.80 377.65 NA [5,] 197.20 205.40 346.30 682.00 313.70 406.70 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 171.6984 183.1745 212.8155 389.9339 252.661 356.2622 NA [2,] 199.2016 206.0255 275.4845 571.9661 288.739 378.3378 NA $out [1] 454.7 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(143.7, 164.4, 185.45, 194.55, 197.2, 168.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/7dyih1304950151.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,] 265.0667 218.350 260.9625 [2,] 279.2583 233.350 265.5875 [3,] 285.8500 254.500 271.5375 [4,] 302.4083 272.025 275.3813 [5,] 327.7000 313.550 278.7875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 275.2911 236.8601 267.0705 [2,] 296.4089 272.1399 276.0045 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(265.066666666667, 279.258333333333, 285.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lph61304950151.ps tmp/1lph61304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/2kvrq1304950151.ps tmp/2kvrq1304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/38ocv1304950151.ps tmp/38ocv1304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/4jseq1304950151.ps tmp/4jseq1304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/5iszo1304950151.ps tmp/5iszo1304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/626761304950151.ps tmp/626761304950151.png",intern=TRUE)) character(0) > try(system("convert tmp/7dyih1304950151.ps tmp/7dyih1304950151.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.530 1.210 2.099