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(100.8,101.33,101.88,101.85,102.04,102.22,102.63,102.65,102.54,102.37,102.68,102.76,102.82,103.31,103.23,103.6,103.95,103.93,104.25,104.38,104.36,104.32,104.58,104.68,104.92,105.46,105.23,105.58,105.34,105.28,105.7,105.67,105.71,106.19,106.93,107.44,107.85,108.71,109.32,109.49,110.2,110.62,111.22,110.88,111.15,111.29,111.09,111.24,111.45,111.75,111.07,111.17,110.96,110.5,110.48,110.66,110.46,110.64,110.75,110.84) > 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,] 100.80 102.82 104.92 107.85 111.45 NA [2,] 101.33 103.31 105.46 108.71 111.75 NA [3,] 101.88 103.23 105.23 109.32 111.07 NA [4,] 101.85 103.60 105.58 109.49 111.17 NA [5,] 102.04 103.95 105.34 110.20 110.96 NA [6,] 102.22 103.93 105.28 110.62 110.50 NA [7,] 102.63 104.25 105.70 111.22 110.48 NA [8,] 102.65 104.38 105.67 110.88 110.66 NA [9,] 102.54 104.36 105.71 111.15 110.46 NA [10,] 102.37 104.32 106.19 111.29 110.64 NA [11,] 102.68 104.58 106.93 111.09 110.75 NA [12,] 102.76 104.68 107.44 111.24 110.84 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.53 0.49 0.54 0.86 0.30 NA [2,] 0.55 -0.08 -0.23 0.61 -0.68 NA [3,] -0.03 0.37 0.35 0.17 0.10 NA [4,] 0.19 0.35 -0.24 0.71 -0.21 NA [5,] 0.18 -0.02 -0.06 0.42 -0.46 NA [6,] 0.41 0.32 0.42 0.60 -0.02 NA [7,] 0.02 0.13 -0.03 -0.34 0.18 NA [8,] -0.11 -0.02 0.04 0.27 -0.20 NA [9,] -0.17 -0.04 0.48 0.14 0.18 NA [10,] 0.31 0.26 0.74 -0.20 0.11 NA [11,] 0.08 0.10 0.51 0.15 0.09 NA [12,] 0.06 0.24 0.41 0.21 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/1dcbg1260895750.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/2nu031260895750.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/38qlf1260895750.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/45d4u1260895750.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,] 100.80 101.33 101.88 101.85 102.04 102.22 102.63 102.65 102.54 102.37 [2,] 102.82 103.31 103.23 103.60 103.95 103.93 104.25 104.38 104.36 104.32 [3,] 104.92 105.46 105.23 105.58 105.34 105.28 105.70 105.67 105.71 106.19 [4,] 107.85 108.71 109.32 109.49 110.20 110.50 110.48 110.66 110.46 110.64 [5,] 111.45 111.75 111.07 111.17 110.96 110.62 111.22 110.88 111.15 111.29 [,11] [,12] [1,] 102.68 102.76 [2,] 104.58 104.68 [3,] 106.93 107.44 [4,] 110.75 110.84 [5,] 111.09 111.24 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.3658 101.6444 100.9268 101.4181 100.9238 100.6377 101.2979 101.2326 [2,] 108.4742 109.2756 109.5332 109.7419 109.7562 109.9223 110.1021 110.1074 [,9] [,10] [,11] [,12] [1,] 101.3998 101.7243 102.5703 103.0874 [2,] 110.0202 110.6557 111.2897 111.7926 $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(100.8, 102.82, 104.92, 107.85, 111.45, 101.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5njou1260895750.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.49 -0.68 -0.03 -0.24 -0.06 0.32 -0.03 -0.20 -0.17 0.11 0.08 0.060 [2,] 0.49 -0.23 0.10 -0.21 -0.06 0.32 -0.03 -0.11 -0.04 0.11 0.09 0.135 [3,] 0.53 -0.08 0.17 0.19 -0.02 0.41 0.02 -0.02 0.14 0.26 0.10 0.225 [4,] 0.54 0.55 0.35 0.35 0.18 0.42 0.13 0.04 0.18 0.31 0.15 0.325 [5,] 0.54 0.61 0.37 0.71 0.42 0.42 0.18 0.04 0.48 0.31 0.15 0.410 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4946701 -0.631146 -0.00664937 -0.2056946 -0.1895834 0.3393403 -0.0930556 [2,] 0.5653299 0.471146 0.34664937 0.5856946 0.1495834 0.4806597 0.1330556 [,8] [,9] [,10] [,11] [,12] [1,] -0.12598962 -0.01545145 0.1186805 0.05760415 0.0749 [2,] 0.08598962 0.29545145 0.4013195 0.14239585 0.3751 $out [1] 0.86 0.30 -0.46 0.60 -0.02 -0.34 0.27 0.74 -0.20 0.51 $group [1] 1 1 5 6 6 7 8 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.490000000000009, 0.490000000000009, 0.530000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6es7b1260895750.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,] 100.800 102.820 104.920 107.850 110.460 NA [2,] 101.865 103.455 105.310 109.405 110.570 NA [3,] 102.295 104.100 105.625 110.750 110.795 NA [4,] 102.640 104.370 105.950 111.185 111.120 NA [5,] 102.760 104.680 106.190 111.290 111.750 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 101.9415 103.6827 105.3331 109.9381 110.5441 NA [2,] 102.6485 104.5173 105.9169 111.5619 111.0459 NA $out [1] 106.93 107.44 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.8, 101.865, 102.295, 102.64, 102.76, 102.82, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7o3kn1260895750.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,] 105.568 104.920 105.335 [2,] 106.242 105.310 106.410 [3,] 106.677 105.625 107.290 [4,] 106.909 105.950 107.500 [5,] 107.392 106.190 107.760 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 106.3728 105.3331 106.7928 [2,] 106.9812 105.9169 107.7872 $out [1] 106.93 107.44 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.568, 106.242, 106.677, 106.909, 107.392, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > try(system("convert tmp/1dcbg1260895750.ps tmp/1dcbg1260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/2nu031260895750.ps tmp/2nu031260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/38qlf1260895750.ps tmp/38qlf1260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/45d4u1260895750.ps tmp/45d4u1260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/5njou1260895750.ps tmp/5njou1260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/6es7b1260895750.ps tmp/6es7b1260895750.png",intern=TRUE)) character(0) > try(system("convert tmp/7o3kn1260895750.ps tmp/7o3kn1260895750.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.197 0.923 2.221