R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(98.01,99.2,100.7,106.41,107.51,107.1,99.75,98.96,107.26,107.11,107.2,107.65,104.78,105.56,107.95,107.11,107.47,107.06,99.71,99.6,107.19,107.26,113.24,113.52,110.48,111.41,115.5,118.32,118.42,117.5,110.23,109.19,118.41,118.3,116.1,114.11,113.41,114.33,116.61,123.64,123.77,123.39,116.03,114.95,123.4,123.53,114.45,114.26,114.35,112.77,115.31,114.93,116.38,115.07,105,103.43,114.52,115.04,117.16,115) > 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,] 98.01 104.78 110.48 113.41 114.35 NA [2,] 99.20 105.56 111.41 114.33 112.77 NA [3,] 100.70 107.95 115.50 116.61 115.31 NA [4,] 106.41 107.11 118.32 123.64 114.93 NA [5,] 107.51 107.47 118.42 123.77 116.38 NA [6,] 107.10 107.06 117.50 123.39 115.07 NA [7,] 99.75 99.71 110.23 116.03 105.00 NA [8,] 98.96 99.60 109.19 114.95 103.43 NA [9,] 107.26 107.19 118.41 123.40 114.52 NA [10,] 107.11 107.26 118.30 123.53 115.04 NA [11,] 107.20 113.24 116.10 114.45 117.16 NA [12,] 107.65 113.52 114.11 114.26 115.00 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.19 0.78 0.93 0.92 -1.58 NA [2,] 1.50 2.39 4.09 2.28 2.54 NA [3,] 5.71 -0.84 2.82 7.03 -0.38 NA [4,] 1.10 0.36 0.10 0.13 1.45 NA [5,] -0.41 -0.41 -0.92 -0.38 -1.31 NA [6,] -7.35 -7.35 -7.27 -7.36 -10.07 NA [7,] -0.79 -0.11 -1.04 -1.08 -1.57 NA [8,] 8.30 7.59 9.22 8.45 11.09 NA [9,] -0.15 0.07 -0.11 0.13 0.52 NA [10,] 0.09 5.98 -2.20 -9.08 2.12 NA [11,] 0.45 0.28 -1.99 -0.19 -2.16 NA [12,] -2.87 -3.04 -0.70 0.09 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/wessaorg/rcomp/tmp/16hiy1331746284.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2mciy1331746284.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3vf621331746284.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/45xml1331746284.ps",horizontal=F,onefile=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,] 98.01 99.20 100.70 106.41 107.47 107.06 99.71 98.96 107.19 107.11 [2,] 104.78 105.56 107.95 107.11 107.51 107.10 99.75 99.60 107.26 107.26 [3,] 110.48 111.41 115.31 114.93 116.38 115.07 105.00 103.43 114.52 115.04 [4,] 113.41 112.77 115.50 118.32 118.42 117.50 110.23 109.19 118.41 118.30 [5,] 114.35 114.33 116.61 123.64 123.77 123.39 116.03 114.95 123.40 123.53 [,11] [,12] [1,] 113.24 113.52 [2,] 113.24 113.52 [3,] 114.45 114.11 [4,] 116.10 114.26 [5,] 117.16 115.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.3821 106.3154 109.9752 107.009 108.671 107.7214 97.59486 96.65373 [2,] 116.5779 116.5046 120.6448 122.851 124.089 122.4186 112.40514 110.20627 [,9] [,10] [,11] [,12] [1,] 106.6414 107.2392 112.4291 113.5871 [2,] 122.3986 122.8408 116.4709 114.6329 $out [1] 107.20 107.65 $group [1] 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(98.01, 104.78, 110.48, 113.41, 114.35, 99.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5eeqd1331746284.ps",horizontal=F,onefile=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.78 2.28 -0.84 0.10 -1.31 -7.36 -1.08 7.59 -0.15 -2.20 -2.16 -3.040 [2,] 0.78 2.28 -0.38 0.13 -0.92 -7.36 -1.08 8.30 -0.11 -2.20 -1.99 -2.955 [3,] 0.92 2.39 2.82 0.36 -0.41 -7.35 -1.04 8.45 0.07 0.09 -0.19 -1.785 [4,] 0.93 2.54 5.71 1.10 -0.41 -7.35 -0.79 9.22 0.13 2.12 0.28 -0.305 [5,] 0.93 2.54 7.03 1.45 -0.38 -7.35 -0.79 9.22 0.13 5.98 0.45 0.090 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8140104 2.206285 -1.483179 -0.3253996 -0.77036472 -7.357066 -1.2449133 [2,] 1.0259896 2.573715 7.123179 1.0453996 -0.04963528 -7.342934 -0.8350867 [,8] [,9] [,10] [,11] [,12] [1,] 7.79993 -0.0995834 -2.962501 -1.793976 -3.8785 [2,] 9.10007 0.2395834 3.142501 1.413976 0.3085 $out [1] 1.19 -1.58 1.50 4.09 -7.27 -10.07 -0.11 -1.57 11.09 0.52 [11] -9.08 $group [1] 1 1 2 2 6 6 7 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.780000000000001, 0.780000000000001, 0.920000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/65lyr1331746284.ps",horizontal=F,onefile=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,] 98.010 104.78 109.190 113.410 112.770 NA [2,] 99.475 105.17 110.945 114.390 113.560 NA [3,] 106.755 107.15 115.800 116.320 114.965 NA [4,] 107.230 107.71 118.310 123.465 115.190 NA [5,] 107.650 107.95 118.420 123.770 117.160 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 103.2179 105.9915 112.4408 112.1808 114.2215 NA [2,] 110.2921 108.3085 119.1592 120.4592 115.7085 NA $out [1] 99.71 99.60 113.24 113.52 105.00 103.43 $group [1] 2 2 2 2 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(98.01, 99.475, 106.755, 107.23, 107.65, 104.78, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/71om41331746284.ps",horizontal=F,onefile=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,] 105.226 105.000 104.3950 [2,] 108.430 110.945 109.1300 [3,] 113.269 114.485 112.5075 [4,] 114.119 115.055 112.9000 [5,] 114.710 116.380 114.6700 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 110.6742 112.6104 110.788 [2,] 115.8638 116.3596 114.227 $out [1] 103.43 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.226, 108.43, 113.269, 114.119, 114.71, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16hiy1331746284.ps tmp/16hiy1331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/2mciy1331746284.ps tmp/2mciy1331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/3vf621331746284.ps tmp/3vf621331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/45xml1331746284.ps tmp/45xml1331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/5eeqd1331746284.ps tmp/5eeqd1331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/65lyr1331746284.ps tmp/65lyr1331746284.png",intern=TRUE)) character(0) > try(system("convert tmp/71om41331746284.ps tmp/71om41331746284.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.779 0.491 2.520