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.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,103.69,103.68,104.2,104.08,104.16,103.05,104.66,104.46,104.95,105.85,106.23,104.86,107.44,108.23,108.45,109.39,110.15,109.13,110.28,110.17,109.99,109.26,109.11,107.06,109.53,108.92,109.24,109.12,109,107.23,109.49,109.04,109.02,109.23,109.46) > 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.92 99.60 101.29 104.86 107.06 NA [2,] 99.06 101.88 103.69 107.44 109.53 NA [3,] 99.65 101.81 103.68 108.23 108.92 NA [4,] 99.82 102.38 104.20 108.45 109.24 NA [5,] 99.99 102.74 104.08 109.39 109.12 NA [6,] 100.33 102.82 104.16 110.15 109.00 NA [7,] 99.31 101.72 103.05 109.13 107.23 NA [8,] 101.10 103.47 104.66 110.28 109.49 NA [9,] 101.10 102.98 104.46 110.17 109.04 NA [10,] 100.93 102.68 104.95 109.99 109.02 NA [11,] 100.85 102.90 105.85 109.26 109.23 NA [12,] 100.93 103.03 106.23 109.11 109.46 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.14 2.28 2.40 2.58 2.47 NA [2,] 0.59 -0.07 -0.01 0.79 -0.61 NA [3,] 0.17 0.57 0.52 0.22 0.32 NA [4,] 0.17 0.36 -0.12 0.94 -0.12 NA [5,] 0.34 0.08 0.08 0.76 -0.12 NA [6,] -1.02 -1.10 -1.11 -1.02 -1.77 NA [7,] 1.79 1.75 1.61 1.15 2.26 NA [8,] 0.00 -0.49 -0.20 -0.11 -0.45 NA [9,] -0.17 -0.30 0.49 -0.18 -0.02 NA [10,] -0.08 0.22 0.90 -0.73 0.21 NA [11,] 0.08 0.13 0.38 -0.15 0.23 NA [12,] -1.33 -1.74 -1.37 -2.05 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/1cxqj1289817025.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/2cxqj1289817025.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/3577m1289817025.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/4577m1289817025.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.92 99.06 99.65 99.82 99.99 100.33 99.31 101.10 101.10 100.93 [2,] 99.60 101.88 101.81 102.38 102.74 102.82 101.72 103.47 102.98 102.68 [3,] 101.29 103.69 103.68 104.20 104.08 104.16 103.05 104.66 104.46 104.95 [4,] 104.86 107.44 108.23 108.45 109.12 109.00 107.23 109.49 109.04 109.02 [5,] 107.06 109.53 108.92 109.24 109.39 110.15 109.13 110.28 110.17 109.99 [,11] [,12] [1,] 100.85 100.93 [2,] 102.90 103.03 [3,] 105.85 106.23 [4,] 109.23 109.11 [5,] 109.26 109.46 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.5733 99.76132 99.14364 99.91095 99.5719 99.79323 99.15665 [2,] 105.0067 107.61868 108.21636 108.48905 108.5881 108.52677 106.94335 [,8] [,9] [,10] [,11] [,12] [1,] 100.4063 100.1780 100.4702 101.3772 101.9339 [2,] 108.9137 108.7420 109.4298 110.3228 110.5261 $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(96.92, 99.6, 101.29, 104.86, 107.06, 99.06, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5577m1289817025.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,] 2.14 -0.61 0.17 -0.12 -0.12 -1.11 1.61 -0.49 -0.30 -0.08 0.08 -2.050 [2,] 2.28 -0.07 0.22 -0.12 0.08 -1.11 1.61 -0.45 -0.18 -0.08 0.08 -1.895 [3,] 2.40 -0.01 0.32 0.17 0.08 -1.10 1.75 -0.20 -0.17 0.21 0.13 -1.555 [4,] 2.47 0.59 0.52 0.36 0.34 -1.02 1.79 -0.11 -0.02 0.22 0.23 -1.350 [5,] 2.58 0.79 0.57 0.94 0.34 -1.02 1.79 0.00 -0.02 0.22 0.38 -1.330 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.265746 -0.4763543 0.1080208 -0.1691668 -0.1037153 -1.163594 1.622812 [2,] 2.534254 0.4563543 0.5319792 0.5091668 0.2637153 -1.036406 1.877188 [,8] [,9] [,10] [,11] [,12] [1,] -0.44024314 -0.2830556 -0.001979244 0.02401038 -1.98555 [2,] 0.04024314 -0.0569444 0.421979244 0.23598962 -1.12445 $out [1] 0.76 -1.77 1.15 2.26 0.49 0.90 -0.73 -0.15 $group [1] 5 6 7 7 9 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.14, 2.28, 2.39999999999999, 2.47, 2.58, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fg6p1289817025.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,] 99.06 101.720 103.050 107.440 108.92 NA [2,] 99.48 101.845 103.685 108.340 108.96 NA [3,] 100.16 102.710 104.180 109.195 109.08 NA [4,] 100.93 102.940 104.805 110.070 109.35 NA [5,] 101.10 103.470 106.230 110.280 109.53 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 99.49865 102.2106 103.6692 108.4059 108.9021 NA [2,] 100.82135 103.2094 104.6908 109.9841 109.2579 NA $out [1] 96.92 99.60 101.29 104.86 107.06 107.23 $group [1] 1 2 3 4 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(99.06, 99.48, 100.16, 100.93, 101.1, 101.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fg6p1289817025.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,] 104.088 103.050 104.4750 [2,] 104.389 103.685 104.8400 [3,] 105.178 104.180 105.8800 [4,] 105.584 104.805 106.0375 [5,] 105.800 106.230 106.4800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 104.6330 103.6692 105.3338 [2,] 105.7230 104.6908 106.4262 $out [1] 101.946 101.290 102.230 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(104.088, 104.389, 105.178, 105.584, 105.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1cxqj1289817025.ps tmp/1cxqj1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/2cxqj1289817025.ps tmp/2cxqj1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/3577m1289817025.ps tmp/3577m1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/4577m1289817025.ps tmp/4577m1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/5577m1289817025.ps tmp/5577m1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/6fg6p1289817025.ps tmp/6fg6p1289817025.png",intern=TRUE)) character(0) > try(system("convert tmp/7fg6p1289817025.ps tmp/7fg6p1289817025.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.191 0.931 1.636