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(106.8,114.3,105.7,90.1,91.6,97.7,100.8,104.6,95.9,102.7,104,107.9,113.8,113.8,123.1,125.1,137.6,134,140.3,152.1,150.6,167.3,153.2,142,154.4,158.5,180.9,181.3,172.4,192,199.3,215.4,214.3,201.5,190.5,196,215.7,209.4,214.1,237.8,239,237.8,251.5,248.8,215.4,201.2,203.1,214.2,188.9,203,213.3,228.5,228.2,240.9,258.8,248.5,269.2,289.6,323.4,317.2,322.8,340.9,368.2,388.5,441.2,474.3,483.9,417.9,365.9,263,199.4,157.2) > 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,] 106.8 113.8 154.4 215.7 188.9 322.8 NA [2,] 114.3 113.8 158.5 209.4 203.0 340.9 NA [3,] 105.7 123.1 180.9 214.1 213.3 368.2 NA [4,] 90.1 125.1 181.3 237.8 228.5 388.5 NA [5,] 91.6 137.6 172.4 239.0 228.2 441.2 NA [6,] 97.7 134.0 192.0 237.8 240.9 474.3 NA [7,] 100.8 140.3 199.3 251.5 258.8 483.9 NA [8,] 104.6 152.1 215.4 248.8 248.5 417.9 NA [9,] 95.9 150.6 214.3 215.4 269.2 365.9 NA [10,] 102.7 167.3 201.5 201.2 289.6 263.0 NA [11,] 104.0 153.2 190.5 203.1 323.4 199.4 NA [12,] 107.9 142.0 196.0 214.2 317.2 157.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7.5 0.0 4.1 -6.3 14.1 18.1 NA [2,] -8.6 9.3 22.4 4.7 10.3 27.3 NA [3,] -15.6 2.0 0.4 23.7 15.2 20.3 NA [4,] 1.5 12.5 -8.9 1.2 -0.3 52.7 NA [5,] 6.1 -3.6 19.6 -1.2 12.7 33.1 NA [6,] 3.1 6.3 7.3 13.7 17.9 9.6 NA [7,] 3.8 11.8 16.1 -2.7 -10.3 -66.0 NA [8,] -8.7 -1.5 -1.1 -33.4 20.7 -52.0 NA [9,] 6.8 16.7 -12.8 -14.2 20.4 -102.9 NA [10,] 1.3 -14.1 -11.0 1.9 33.8 -63.6 NA [11,] 3.9 -11.2 5.5 11.1 -6.2 -42.2 NA [12,] 5.9 12.4 19.7 -25.3 5.6 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/html/rcomp/tmp/1utib1244047470.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/2meho1244047470.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/3a34l1244047470.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/4ht571244047470.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] [,11] [1,] 106.80 113.80 105.7 90.1 91.6 97.7 100.8 104.60 95.90 102.70 104.00 [2,] 113.80 114.30 123.1 125.1 137.6 134.0 140.3 152.10 150.60 167.30 153.20 [3,] 171.65 180.75 197.1 204.9 200.3 214.9 225.4 231.95 214.85 201.35 194.95 [4,] 215.70 209.40 214.1 237.8 239.0 240.9 258.8 248.80 269.20 263.00 203.10 [5,] 322.80 340.90 214.1 388.5 239.0 240.9 258.8 248.80 365.90 289.60 203.10 [,12] [1,] 107.9 [2,] 142.0 [3,] 176.6 [4,] 214.2 [5,] 317.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105.9212 119.4074 138.4021 132.2049 134.8937 145.9460 148.9637 169.5754 [2,] 237.3788 242.0926 255.7979 277.5951 265.7063 283.8540 301.8363 294.3246 [,9] [,10] [,11] [,12] [1,] 138.3492 139.6204 162.7629 130.0287 [2,] 291.3508 263.0796 227.1371 223.1713 $out [1] 368.2 441.2 474.3 483.9 417.9 323.4 $group [1] 3 5 6 7 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(106.8, 113.8, 171.65, 215.7, 322.8, 113.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zmao1244047470.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,] -6.3 -8.6 -15.6 -8.90 -3.6 3.10 -10.30 -52.0 -14.2 -14.10 -11.20 5.6 [2,] 0.0 4.7 0.4 -0.30 -1.2 6.30 -10.30 -33.4 -14.2 -14.10 -11.20 5.6 [3,] 5.8 9.8 8.6 1.35 9.4 8.45 0.55 -5.1 -3.0 -4.85 -1.15 5.9 [4,] 14.1 22.4 20.3 12.50 19.6 13.70 11.80 -1.1 16.7 1.90 5.50 12.4 [5,] 18.1 27.3 23.7 12.50 33.1 17.90 16.10 20.7 20.4 1.90 11.10 19.7 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3.294955 -1.617072 -4.236143 -6.906413 -4.016672 3.676761 -13.70521 [2,] 14.894955 21.217072 21.436143 9.606413 22.816672 13.223239 14.80521 [,8] [,9] [,10] [,11] [,12] [1,] -25.93454 -22.93150 -15.170517 -11.92204 1.095137 [2,] 15.73454 16.93150 5.470517 9.62204 10.704863 $out [1] 52.7 -66.0 -102.9 33.8 -63.6 -42.2 -25.3 $group [1] 4 7 9 10 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.29999999999998, 0, 5.8, 14.1, 18.1000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6y8zk1244047470.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] [,7] [1,] 90.10 113.80 154.40 201.20 188.90 157.20 NA [2,] 96.80 124.10 176.65 211.75 220.75 292.90 NA [3,] 103.35 138.95 191.25 215.55 244.70 367.05 NA [4,] 106.25 151.35 200.40 238.40 279.40 429.55 NA [5,] 114.30 167.30 215.40 251.50 323.40 483.90 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 99.0398 126.5211 180.4175 203.3948 217.9493 304.723 NA [2,] 107.6602 151.3789 202.0825 227.7052 271.4507 429.377 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(90.1, 96.8, 103.35, 106.25, 114.3, 113.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xboz1244047470.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,] 183.7333 171.650 166.4750 [2,] 192.7917 187.850 176.7250 [3,] 206.3833 200.825 189.3063 [4,] 224.0000 214.875 207.1687 [5,] 239.1000 231.950 211.7000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 192.1490 188.4987 175.4207 [2,] 220.6177 213.1513 203.1918 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(183.733333333333, 192.791666666667, 206.383333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1utib1244047470.ps tmp/1utib1244047470.png") > system("convert tmp/2meho1244047470.ps tmp/2meho1244047470.png") > system("convert tmp/3a34l1244047470.ps tmp/3a34l1244047470.png") > system("convert tmp/4ht571244047470.ps tmp/4ht571244047470.png") > system("convert tmp/5zmao1244047470.ps tmp/5zmao1244047470.png") > system("convert tmp/6y8zk1244047470.ps tmp/6y8zk1244047470.png") > system("convert tmp/7xboz1244047470.ps tmp/7xboz1244047470.png") > > > proc.time() user system elapsed 1.204 0.955 1.954