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(96.96,93.11,95.62,98.30,96.38,100.82,99.06,94.03,102.07,99.31,98.64,101.82,99.14,97.63,100.06,101.32,101.49,105.43,105.09,99.48,108.53,104.34,106.10,107.35,103.00,104.50,105.17,104.84,106.18,108.86,107.77,102.74,112.63,106.26,108.86,111.38,106.85,107.86,107.94,111.38,111.29,113.72,111.88,109.87,113.72,111.71,114.81,112.05,111.54,110.87,110.87,115.48,111.63,116.24,113.56,106.01,110.45,107.77,108.61,108.19) > 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,] 96.96 99.14 103.00 106.85 111.54 NA [2,] 93.11 97.63 104.50 107.86 110.87 NA [3,] 95.62 100.06 105.17 107.94 110.87 NA [4,] 98.30 101.32 104.84 111.38 115.48 NA [5,] 96.38 101.49 106.18 111.29 111.63 NA [6,] 100.82 105.43 108.86 113.72 116.24 NA [7,] 99.06 105.09 107.77 111.88 113.56 NA [8,] 94.03 99.48 102.74 109.87 106.01 NA [9,] 102.07 108.53 112.63 113.72 110.45 NA [10,] 99.31 104.34 106.26 111.71 107.77 NA [11,] 98.64 106.10 108.86 114.81 108.61 NA [12,] 101.82 107.35 111.38 112.05 108.19 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -3.85 -1.51 1.50 1.01 -0.67 NA [2,] 2.51 2.43 0.67 0.08 0.00 NA [3,] 2.68 1.26 -0.33 3.44 4.61 NA [4,] -1.92 0.17 1.34 -0.09 -3.85 NA [5,] 4.44 3.94 2.68 2.43 4.61 NA [6,] -1.76 -0.34 -1.09 -1.84 -2.68 NA [7,] -5.03 -5.61 -5.03 -2.01 -7.55 NA [8,] 8.04 9.05 9.89 3.85 4.44 NA [9,] -2.76 -4.19 -6.37 -2.01 -2.68 NA [10,] -0.67 1.76 2.60 3.10 0.84 NA [11,] 3.18 1.25 2.52 -2.76 -0.42 NA [12,] -2.68 -4.35 -4.53 -0.51 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/1x8gg1258046742.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/2zacu1258046742.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/3krsr1258046742.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/414k41258046742.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,] 96.96 93.11 95.62 98.30 96.38 100.82 99.06 94.03 108.53 99.31 [2,] 99.14 97.63 100.06 101.32 101.49 105.43 105.09 99.48 108.53 104.34 [3,] 103.00 104.50 105.17 104.84 106.18 108.86 107.77 102.74 110.45 106.26 [4,] 106.85 107.86 107.94 111.38 111.29 113.72 111.88 106.01 112.63 107.77 [5,] 111.54 110.87 110.87 115.48 111.63 116.24 113.56 109.87 113.72 111.71 [,11] [,12] [1,] 106.10 101.82 [2,] 106.10 107.35 [3,] 108.61 108.19 [4,] 108.86 111.38 [5,] 108.86 112.05 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.55213 97.2715 99.60201 97.73163 99.25534 103.0023 102.9722 [2,] 108.44787 111.7285 110.73799 111.94837 113.10466 114.7177 112.5678 [,8] [,9] [,10] [,11] [,12] [1,] 98.12592 107.5530 103.8364 106.6598 105.3424 [2,] 107.35408 113.3470 108.6836 110.5602 111.0376 $out [1] 102.07 98.64 114.81 $group [1] 9 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(96.96, 99.14, 103, 106.85, 111.54, 93.11, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55f961258046742.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,] -3.85 0.00 -0.33 -3.85 2.43 -2.68 -5.61 3.85 -6.37 -0.67 -2.76 -4.530 [2,] -1.51 0.08 1.26 -1.92 2.68 -1.84 -5.61 4.44 -4.19 0.84 -0.42 -4.440 [3,] -0.67 0.67 2.68 -0.09 3.94 -1.76 -5.03 8.04 -2.76 1.76 1.25 -3.515 [4,] 1.01 2.43 3.44 0.17 4.44 -1.09 -5.03 9.05 -2.68 2.60 2.52 -1.595 [5,] 1.50 2.51 4.61 1.34 4.61 -0.34 -5.03 9.89 -2.01 3.10 3.18 -0.510 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.450626 -0.990504 1.139617 -1.566789 2.696388 -2.289948 -5.439827 [2,] 1.110626 2.330504 4.220383 1.386789 5.183612 -1.230052 -4.620173 [,8] [,9] [,10] [,11] [,12] [1,] 4.782586 -3.826962 0.5163884 -0.8273966 -5.76255 [2,] 11.297414 -1.693038 3.0036116 3.3273966 -1.26745 $out [1] -2.01 -7.55 $group [1] 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.84999999999999, -1.51000000000001, -0.670000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6frcw1258046742.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,] 93.110 97.630 102.74 106.850 106.010 NA [2,] 96.000 99.770 104.67 108.905 108.400 NA [3,] 98.470 102.915 106.22 111.545 110.870 NA [4,] 100.065 105.765 108.86 112.885 112.595 NA [5,] 102.070 108.530 112.63 114.810 116.240 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 96.61593 100.1806 104.3089 109.7297 108.9566 NA [2,] 100.32407 105.6494 108.1311 113.3603 112.7834 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93.11, 96, 98.47, 100.065, 102.07, 97.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7oc6q1258046742.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,] 102.426 102.74 102.7450 [2,] 103.715 104.67 103.4975 [3,] 106.071 106.22 106.3700 [4,] 107.815 108.40 108.9250 [5,] 109.480 110.45 110.5800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 104.2010 104.5187 103.8945 [2,] 107.9410 107.9213 108.8455 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.426, 103.715, 106.071, 107.815, 109.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > system("convert tmp/1x8gg1258046742.ps tmp/1x8gg1258046742.png") > system("convert tmp/2zacu1258046742.ps tmp/2zacu1258046742.png") > system("convert tmp/3krsr1258046742.ps tmp/3krsr1258046742.png") > system("convert tmp/414k41258046742.ps tmp/414k41258046742.png") > system("convert tmp/55f961258046742.ps tmp/55f961258046742.png") > system("convert tmp/6frcw1258046742.ps tmp/6frcw1258046742.png") > system("convert tmp/7oc6q1258046742.ps tmp/7oc6q1258046742.png") > > > proc.time() user system elapsed 1.250 0.988 4.122