R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(95.4,101.2,101.5,101.9,101.7,100.1,97.4,96.5,99.2,102.2,105.3,111.1,114.9,124.5,142.2,159.7,165.2,198.6,207.8,219.6,239.6,235.3,218.5,213.8,205.5,198.4,198.5,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.0,248.3,258.4,254.9) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.4 114.9 205.5 156.4 169.1 NA [2,] 101.2 124.5 198.4 143.7 169.8 NA [3,] 101.5 142.2 198.5 153.6 195.5 NA [4,] 101.9 159.7 190.2 168.8 194.8 NA [5,] 101.7 165.2 180.7 185.8 204.5 NA [6,] 100.1 198.6 193.6 199.9 203.8 NA [7,] 97.4 207.8 192.8 205.4 204.8 NA [8,] 96.5 219.6 195.5 197.5 204.9 NA [9,] 99.2 239.6 197.2 199.6 240.0 NA [10,] 102.2 235.3 196.9 200.5 248.3 NA [11,] 105.3 218.5 178.9 193.7 258.4 NA [12,] 111.1 213.8 172.4 179.6 254.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 5.8 9.6 -7.1 -12.7 0.7 NA [2,] 0.3 17.7 0.1 9.9 25.7 NA [3,] 0.4 17.5 -8.3 15.2 -0.7 NA [4,] -0.2 5.5 -9.5 17.0 9.7 NA [5,] -1.6 33.4 12.9 14.1 -0.7 NA [6,] -2.7 9.2 -0.8 5.5 1.0 NA [7,] -0.9 11.8 2.7 -7.9 0.1 NA [8,] 2.7 20.0 1.7 2.1 35.1 NA [9,] 3.0 -4.3 -0.3 0.9 8.3 NA [10,] 3.1 -16.8 -18.0 -6.8 10.1 NA [11,] 5.8 -4.7 -6.5 -14.1 -3.5 NA [12,] 3.8 -8.3 -16.0 -10.5 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/freestat/rcomp/tmp/14njg1227945494.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/freestat/rcomp/tmp/2vgmx1227945494.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/freestat/rcomp/tmp/34h4p1227945494.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/freestat/rcomp/tmp/4nbx41227945494.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] [,12] [1,] 95.4 101.2 101.5 159.7 165.2 193.6 192.8 195.5 197.2 196.9 178.9 111.1 [2,] 114.9 124.5 142.2 159.7 165.2 193.6 192.8 195.5 197.2 196.9 178.9 172.4 [3,] 156.4 143.7 153.6 168.8 180.7 198.6 204.8 197.5 199.6 200.5 193.7 179.6 [4,] 169.1 169.8 195.5 190.2 185.8 199.9 205.4 204.9 239.6 235.3 218.5 213.8 [5,] 205.5 198.4 198.5 194.8 204.5 203.8 207.8 204.9 240.0 248.3 258.4 254.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 118.1024 111.6911 115.9384 147.2488 166.1441 194.1484 195.8969 190.858 [2,] 194.6976 175.7089 191.2616 190.3512 195.2559 203.0516 213.7031 204.142 [,9] [,10] [,11] [,12] [1,] 169.6403 173.3667 165.7187 150.3469 [2,] 229.5597 227.6333 221.6813 208.8531 $out [1] 101.9 101.7 100.1 97.4 96.5 219.6 99.2 102.2 105.3 $group [1] 4 5 6 7 8 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.4, 114.9, 156.4, 169.1, 205.5, 101.2, 124.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5z0jd1227945494.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,] -12.7 0.1 -8.3 -9.5 -1.6 -2.7 -0.9 1.7 -4.3 -18.0 -6.5 -16.00 [2,] -7.1 0.3 -0.7 -0.2 -0.7 -0.8 -0.9 2.1 -0.3 -16.8 -6.5 -13.25 [3,] 0.7 9.9 0.4 5.5 12.9 1.0 0.1 2.7 0.9 -6.8 -4.7 -9.40 [4,] 5.8 17.7 15.2 9.7 14.1 5.5 2.7 20.0 3.0 3.1 -3.5 -2.25 [5,] 9.6 25.7 17.5 17.0 33.4 9.2 2.7 35.1 3.0 10.1 -3.5 3.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.415108 -2.394796 -10.8349 -1.495315 2.442357 -3.451564 -2.443751 [2,] 9.815108 22.194796 11.6349 12.495315 23.357643 5.451564 2.643751 [,8] [,9] [,10] [,11] [,12] [1,] -9.948095 -1.431772 -20.86129 -6.819792 -18.09 [2,] 15.348095 3.231772 7.26129 -2.580208 -0.71 $out [1] 11.8 -7.9 8.3 5.8 -14.1 $group [1] 7 7 9 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12.7000000000000, -7.1, 0.700000000000017, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6dieq1227945494.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,] 95.40 114.90 172.40 143.70 169.10 NA [2,] 98.30 150.95 185.45 162.60 195.15 NA [3,] 101.35 203.20 194.55 189.75 204.65 NA [4,] 102.05 219.05 197.80 199.75 244.15 NA [5,] 105.30 239.60 205.50 205.40 258.40 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.6396 172.1391 188.9171 172.8056 182.3008 NA [2,] 103.0604 234.2609 200.1829 206.6944 226.9992 NA $out [1] 111.1 $group [1] 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(95.4, 98.3, 101.35, 102.05, 105.3, 114.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7lrxh1227945494.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,] 147.52 143.7 142.000 [2,] 160.67 162.6 171.900 [3,] 180.42 187.2 194.925 [4,] 188.66 199.1 199.650 [5,] 196.64 204.8 218.400 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 167.6536 170.5521 182.2680 [2,] 193.1864 203.8479 207.5820 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(147.52, 160.67, 180.42, 188.66, 196.64, 143.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/14njg1227945494.ps tmp/14njg1227945494.png") > system("convert tmp/2vgmx1227945494.ps tmp/2vgmx1227945494.png") > system("convert tmp/34h4p1227945494.ps tmp/34h4p1227945494.png") > system("convert tmp/4nbx41227945494.ps tmp/4nbx41227945494.png") > system("convert tmp/5z0jd1227945494.ps tmp/5z0jd1227945494.png") > system("convert tmp/6dieq1227945494.ps tmp/6dieq1227945494.png") > system("convert tmp/7lrxh1227945494.ps tmp/7lrxh1227945494.png") > > > proc.time() user system elapsed 1.867 1.481 2.144