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(92.66,94.2,94.37,94.45,94.62,94.37,93.43,94.79,94.88,94.79,94.62,94.71,93.77,95.73,95.99,95.82,95.47,95.82,94.71,96.33,96.5,96.16,96.33,96.33,95.05,96.84,96.92,97.44,97.78,97.69,96.67,98.29,98.2,98.71,98.54,98.2,96.92,99.06,99.65,99.82,99.99,100.33,99.31,101.1,101.1,100.93,100.85,100.93,99.6,101.88,101.81,102.38,102.74,102.82,101.72,103.47,102.98,102.68,102.9,103.03,101.29) > 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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 92.66 93.77 95.05 96.92 99.60 101.29 [2,] 94.20 95.73 96.84 99.06 101.88 NA [3,] 94.37 95.99 96.92 99.65 101.81 NA [4,] 94.45 95.82 97.44 99.82 102.38 NA [5,] 94.62 95.47 97.78 99.99 102.74 NA [6,] 94.37 95.82 97.69 100.33 102.82 NA [7,] 93.43 94.71 96.67 99.31 101.72 NA [8,] 94.79 96.33 98.29 101.10 103.47 NA [9,] 94.88 96.50 98.20 101.10 102.98 NA [10,] 94.79 96.16 98.71 100.93 102.68 NA [11,] 94.62 96.33 98.54 100.85 102.90 NA [12,] 94.71 96.33 98.20 100.93 103.03 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.54 1.96 1.79 2.14 2.28 NA [2,] 0.17 0.26 0.08 0.59 -0.07 NA [3,] 0.08 -0.17 0.52 0.17 0.57 NA [4,] 0.17 -0.35 0.34 0.17 0.36 NA [5,] -0.25 0.35 -0.09 0.34 0.08 NA [6,] -0.94 -1.11 -1.02 -1.02 -1.10 NA [7,] 1.36 1.62 1.62 1.79 1.75 NA [8,] 0.09 0.17 -0.09 0.00 -0.49 NA [9,] -0.09 -0.34 0.51 -0.17 -0.30 NA [10,] -0.17 0.17 -0.17 -0.08 0.22 NA [11,] 0.09 0.00 -0.34 0.08 0.13 NA [12,] -0.94 -1.28 -1.28 -1.33 -1.74 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/1sdck1228504151.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/280gw1228504151.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/3652j1228504151.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/48z3c1228504151.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] [1,] 92.660 94.20 94.37 94.45 94.62 94.37 93.43 94.79 94.88 94.79 [2,] 93.770 95.73 95.99 95.82 95.47 95.82 94.71 96.33 96.50 96.16 [3,] 95.985 96.84 96.92 97.44 97.78 97.69 96.67 98.29 98.20 98.71 [4,] 99.600 99.06 99.65 99.82 99.99 100.33 99.31 101.10 101.10 100.93 [5,] 101.290 101.88 101.81 102.38 102.74 102.82 101.72 103.47 102.98 102.68 [,11] [,12] [1,] 94.62 94.71 [2,] 96.33 96.33 [3,] 98.54 98.20 [4,] 100.85 100.93 [5,] 102.90 103.03 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 92.22446 94.48703 94.33385 94.61361 94.58618 94.50325 93.41965 [2,] 99.74554 99.19297 99.50615 100.26639 100.97382 100.87675 99.92035 [,8] [,9] [,10] [,11] [,12] [1,] 94.91953 94.94965 95.33953 95.34618 94.94965 [2,] 101.66047 101.45035 102.08047 101.73382 101.45035 $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(92.66, 93.77, 95.985, 99.6, 101.29, 94.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mxl41228504151.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,] 1.54 -0.07 -0.17 0.17 -0.25 -1.11 1.62 -0.09 -0.34 -0.17 0.00 -1.33 [2,] 1.79 0.08 0.08 0.17 -0.09 -1.10 1.62 -0.09 -0.30 -0.17 0.00 -1.33 [3,] 1.96 0.17 0.17 0.17 0.08 -1.02 1.62 0.00 -0.17 -0.08 0.08 -1.28 [4,] 2.14 0.26 0.52 0.34 0.34 -1.02 1.75 0.09 -0.09 0.17 0.09 -1.28 [5,] 2.28 0.26 0.57 0.36 0.35 -0.94 1.79 0.17 -0.09 0.22 0.13 -1.28 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.712691 0.04281245 -0.1409029 0.04987843 -0.2238369 -1.0765278 1.528142 [2,] 2.207309 0.29718755 0.4809029 0.29012157 0.3838369 -0.9634722 1.711858 [,8] [,9] [,10] [,11] [,12] [1,] -0.1271875 -0.31838547 -0.3202431 0.01640623 -1.315330 [2,] 0.1271875 -0.02161453 0.1602431 0.14359377 -1.244670 $out [1] 0.59 -0.35 1.36 -0.49 0.51 -0.34 -0.94 -1.74 $group [1] 2 4 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(1.54000000000001, 1.79000000000001, 1.96000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o88s1228504151.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,] 94.200 94.710 95.050 99.06 101.720 101.29 [2,] 94.285 95.600 96.880 99.48 101.845 101.29 [3,] 94.535 95.905 97.735 100.16 102.710 101.29 [4,] 94.750 96.330 98.245 100.93 102.940 101.29 [5,] 94.880 96.500 98.710 101.10 103.470 101.29 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 94.32291 95.57204 97.11241 99.49865 102.2106 101.29 [2,] 94.74709 96.23796 98.35759 100.82135 103.2094 101.29 $out [1] 92.66 93.43 93.77 96.92 99.60 $group [1] 1 1 2 4 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(94.2, 94.285, 94.535, 94.75, 94.88, 94.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7dl0e1228504151.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,] 96.54833 95.985 96.5100 [2,] 97.64500 96.880 97.5625 [3,] 98.16300 97.735 97.9475 [4,] 98.65100 98.245 98.6100 [5,] 98.79600 98.710 98.8000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 97.70416 97.11241 97.46973 [2,] 98.62184 98.35759 98.42527 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96.5483333333333, 97.645, 98.163, 98.651, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1sdck1228504151.ps tmp/1sdck1228504151.png") > system("convert tmp/280gw1228504151.ps tmp/280gw1228504151.png") > system("convert tmp/3652j1228504151.ps tmp/3652j1228504151.png") > system("convert tmp/48z3c1228504151.ps tmp/48z3c1228504151.png") > system("convert tmp/5mxl41228504151.ps tmp/5mxl41228504151.png") > system("convert tmp/6o88s1228504151.ps tmp/6o88s1228504151.png") > system("convert tmp/7dl0e1228504151.ps tmp/7dl0e1228504151.png") > > > proc.time() user system elapsed 1.213 0.941 1.580