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. Natural language support but running in an English locale 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(114.41,114.25,113.89,113.82,113.77,113.78,113.33,112.94,112.52,112.05,111.54,111.36,111.07,111.02,111.31,110.97,111.04,111.25,111.33,111.1,111.74,111.36,111.25,111.49,112.16,112.36,112.18,112.87,112.28,111.66,110.67,110.42,109.62,108.84,108.4,108.1,107.1,106.54,106.44,106.57,106.12,106.13,106.26,105.78,105.77,105.2,105.15,105.01,104.75,104.96,105.26,105.13,104.77,104.79,104.4,103.89,103.93,103.48) > 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] 58 > (np <- floor(n / par1)) [1] 4 > 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 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 114.41 111.07 112.16 107.10 104.75 [2,] 114.25 111.02 112.36 106.54 104.96 [3,] 113.89 111.31 112.18 106.44 105.26 [4,] 113.82 110.97 112.87 106.57 105.13 [5,] 113.77 111.04 112.28 106.12 104.77 [6,] 113.78 111.25 111.66 106.13 104.79 [7,] 113.33 111.33 110.67 106.26 104.40 [8,] 112.94 111.10 110.42 105.78 103.89 [9,] 112.52 111.74 109.62 105.77 103.93 [10,] 112.05 111.36 108.84 105.20 103.48 [11,] 111.54 111.25 108.40 105.15 NA [12,] 111.36 111.49 108.10 105.01 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -0.16 -0.05 0.20 -0.56 0.21 [2,] -0.36 0.29 -0.18 -0.10 0.30 [3,] -0.07 -0.34 0.69 0.13 -0.13 [4,] -0.05 0.07 -0.59 -0.45 -0.36 [5,] 0.01 0.21 -0.62 0.01 0.02 [6,] -0.45 0.08 -0.99 0.13 -0.39 [7,] -0.39 -0.23 -0.25 -0.48 -0.51 [8,] -0.42 0.64 -0.80 -0.01 0.04 [9,] -0.47 -0.38 -0.78 -0.57 -0.45 [10,] -0.51 -0.11 -0.44 -0.05 NA [11,] -0.18 0.24 -0.30 -0.14 NA [12,] -0.29 0.67 -1.00 -0.26 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/1fl011290787878.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/2qd041290787878.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/3qd041290787878.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/40mz71290787878.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,] 104.75 104.96 105.26 105.13 104.77 104.79 104.40 103.89 103.93 103.48 [2,] 107.10 106.54 106.44 106.57 106.12 106.13 106.26 105.78 105.77 105.20 [3,] 111.07 111.02 111.31 110.97 111.04 111.25 110.67 110.42 109.62 108.84 [4,] 112.16 112.36 112.18 112.87 112.28 111.66 111.33 111.10 111.74 111.36 [5,] 114.41 114.25 113.89 113.82 113.77 113.78 113.33 112.94 112.52 112.05 [,11] [,12] [1,] 105.150 105.010 [2,] 106.775 106.555 [3,] 109.825 109.730 [4,] 111.395 111.425 [5,] 111.540 111.490 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 107.4946 106.9076 107.2541 106.5184 106.6874 107.3425 107.0876 106.6609 [2,] 114.6454 115.1324 115.3659 115.4216 115.3926 115.1575 114.2524 114.1791 [,9] [,10] [,11] [,12] [1,] 105.4016 104.4874 106.1752 105.8827 [2,] 113.8384 113.1926 113.4748 113.5773 $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(104.75, 107.1, 111.07, 112.16, 114.41, 104.96, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/50mz71290787878.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,] -0.56 -0.36 -0.34 -0.59 0.01 -0.99 -0.51 -0.80 -0.57 -0.510 -0.30 -1.000 [2,] -0.16 -0.18 -0.13 -0.45 0.01 -0.45 -0.48 -0.42 -0.57 -0.475 -0.24 -0.645 [3,] -0.05 -0.10 -0.07 -0.36 0.01 -0.39 -0.39 -0.01 -0.47 -0.275 -0.16 -0.275 [4,] 0.20 0.29 0.13 -0.05 0.02 0.08 -0.25 0.04 -0.45 -0.080 0.05 0.205 [5,] 0.21 0.30 0.13 0.07 0.02 0.13 -0.23 0.64 -0.38 -0.050 0.24 0.670 $n [1] 5 5 5 5 5 5 5 5 5 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.3043751 -0.4321008 -0.2537153 -0.642639 0.002934025 -0.76449666 [2,] 0.2043751 0.2321008 0.1137153 -0.077361 0.017065975 -0.01550334 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.5525174 -0.3350348 -0.5547917 -0.58705 -0.3891 -0.9465 [2,] -0.2274826 0.3150348 -0.3852083 0.03705 0.0691 0.3965 $out [1] 0.69 0.21 -0.62 -0.78 $group [1] 3 5 5 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.559999999999988, -0.159999999999997, -0.0499999999999972, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/60mz71290787878.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] [1,] 111.360 110.970 108.100 105.010 103.48 [2,] 112.285 111.055 109.230 105.485 103.93 [3,] 113.550 111.250 111.165 106.125 104.76 [4,] 113.855 111.345 112.230 106.490 104.96 [5,] 114.410 111.740 112.870 107.100 105.26 $n [1] 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [1,] 112.8339 111.1177 109.7967 105.6666 104.2454 [2,] 114.2661 111.3823 112.5333 106.5834 105.2746 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(111.36, 112.285, 113.55, 113.855, 114.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7tdgs1290787878.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,] 108.186 108.8400 108.2800 [2,] 108.908 109.7775 108.7750 [3,] 109.360 110.8200 109.2550 [4,] 109.821 111.0550 109.4525 [5,] 109.898 111.3100 109.7200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 108.9436 110.2373 108.9460 [2,] 109.7764 111.4027 109.5640 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(108.186, 108.908, 109.36, 109.821, 109.898, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fl011290787878.ps tmp/1fl011290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/2qd041290787878.ps tmp/2qd041290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/3qd041290787878.ps tmp/3qd041290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/40mz71290787878.ps tmp/40mz71290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/50mz71290787878.ps tmp/50mz71290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/60mz71290787878.ps tmp/60mz71290787878.png",intern=TRUE)) character(0) > try(system("convert tmp/7tdgs1290787878.ps tmp/7tdgs1290787878.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.919 1.456 2.206