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(128.27,128.38,128.47,128.52,128.71,128.92,128.92,128.82,128.97,129.04,128.95,129.39,129.39,129.48,130.16,129.89,129.85,129.9,129.9,129.57,129.54,129.57,128.97,129.01,129.01,128.72,128.32,128.39,128.33,128.44,128.44,128.6,128.3,128.56,128.01,128.01,128.01,128.26,128.38,128.36,128.48,128.46,128.46,129.56,129.66,129.47,129.41,129.48,129.48,130.17,129.77,129.87,129.97,130.05,130.05,129.89,130.33,130.6,131.46,131.73) > 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,] 128.27 129.39 129.01 128.01 129.48 NA [2,] 128.38 129.48 128.72 128.26 130.17 NA [3,] 128.47 130.16 128.32 128.38 129.77 NA [4,] 128.52 129.89 128.39 128.36 129.87 NA [5,] 128.71 129.85 128.33 128.48 129.97 NA [6,] 128.92 129.90 128.44 128.46 130.05 NA [7,] 128.92 129.90 128.44 128.46 130.05 NA [8,] 128.82 129.57 128.60 129.56 129.89 NA [9,] 128.97 129.54 128.30 129.66 130.33 NA [10,] 129.04 129.57 128.56 129.47 130.60 NA [11,] 128.95 128.97 128.01 129.41 131.46 NA [12,] 129.39 129.01 128.01 129.48 131.73 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.11 0.09 -0.29 0.25 0.69 NA [2,] 0.09 0.68 -0.40 0.12 -0.40 NA [3,] 0.05 -0.27 0.07 -0.02 0.10 NA [4,] 0.19 -0.04 -0.06 0.12 0.10 NA [5,] 0.21 0.05 0.11 -0.02 0.08 NA [6,] 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.10 -0.33 0.16 1.10 -0.16 NA [8,] 0.15 -0.03 -0.30 0.10 0.44 NA [9,] 0.07 0.03 0.26 -0.19 0.27 NA [10,] -0.09 -0.60 -0.55 -0.06 0.86 NA [11,] 0.44 0.04 0.00 0.07 0.27 NA [12,] 0.00 0.00 0.00 0.00 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/1fyn51331214966.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/260sq1331214966.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/3d09h1331214966.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/47ub51331214966.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,] 128.01 128.26 128.32 128.36 128.33 128.44 128.44 128.60 128.30 128.56 [2,] 128.27 128.38 128.38 128.39 128.48 128.46 128.46 128.82 128.97 129.04 [3,] 129.01 128.72 128.47 128.52 128.71 128.92 128.92 129.56 129.54 129.47 [4,] 129.39 129.48 129.77 129.87 129.85 129.90 129.90 129.57 129.66 129.57 [5,] 129.48 130.17 130.16 129.89 129.97 130.05 130.05 129.89 130.33 129.57 [,11] [,12] [1,] 128.95 129.01 [2,] 128.95 129.01 [3,] 128.97 129.39 [4,] 129.41 129.48 [5,] 129.41 129.48 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 128.2186 127.9427 127.4878 127.4742 127.742 127.9025 127.9025 129.0301 [2,] 129.8014 129.4973 129.4522 129.5658 129.678 129.9375 129.9375 130.0899 [,9] [,10] [,11] [,12] [1,] 129.0524 129.0955 128.645 129.0579 [2,] 130.0276 129.8445 129.295 129.7221 $out [1] 130.60 128.01 131.46 128.01 131.73 $group [1] 10 11 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(128.01, 128.27, 129.01, 129.39, 129.48, 128.26, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/59s981331214966.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.09 -0.40 -0.02 -0.06 -0.02 0 -0.33 -0.30 -0.19 -0.60 0.00 0 [2,] 0.09 -0.40 -0.02 -0.04 0.05 0 -0.16 -0.03 0.03 -0.55 0.04 0 [3,] 0.11 0.09 0.05 0.10 0.08 0 -0.10 0.10 0.07 -0.09 0.07 0 [4,] 0.25 0.12 0.07 0.12 0.11 0 0.16 0.15 0.26 -0.06 0.27 0 [5,] 0.25 0.68 0.10 0.19 0.11 0 0.16 0.15 0.27 -0.06 0.44 0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.003055597 -0.2774307 -0.01359377 -0.0130556 0.03760415 0 -0.3261112 [2,] 0.223055597 0.4574307 0.11359377 0.2130556 0.12239585 0 0.1261112 [,8] [,9] [,10] [,11] [,12] [1,] -0.02718755 -0.09251742 -0.4362328 -0.09251742 0 [2,] 0.22718755 0.23251742 0.2562328 0.23251742 0 $out [1] -0.29 0.69 -0.27 0.21 1.10 0.44 0.86 $group [1] 1 1 3 5 7 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0900000000000034, 0.0900000000000034, 0.109999999999985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6is3t1331214967.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,] 128.270 128.970 128.010 128.010 129.480 NA [2,] 128.495 129.435 128.310 128.370 129.880 NA [3,] 128.870 129.570 128.415 128.470 130.050 NA [4,] 128.960 129.895 128.580 129.475 130.465 NA [5,] 129.390 130.160 128.720 129.660 130.600 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 128.6579 129.3602 128.2919 127.966 129.7832 NA [2,] 129.0821 129.7798 128.5381 128.974 130.3168 NA $out [1] 129.01 131.46 131.73 $group [1] 3 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(128.27, 128.495, 128.87, 128.96, 129.39, 128.97, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7wqwq1331214967.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,] 128.832 128.470 128.9300 [2,] 129.013 128.715 129.1025 [3,] 129.154 128.945 129.1800 [4,] 129.360 129.430 129.2200 [5,] 129.524 129.560 129.3150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 128.9957 128.6189 129.1264 [2,] 129.3123 129.2711 129.2336 $out [1] 128.83 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(128.832, 129.013, 129.154, 129.36, 129.524, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fyn51331214966.ps tmp/1fyn51331214966.png",intern=TRUE)) character(0) > try(system("convert tmp/260sq1331214966.ps tmp/260sq1331214966.png",intern=TRUE)) character(0) > try(system("convert tmp/3d09h1331214966.ps tmp/3d09h1331214966.png",intern=TRUE)) character(0) > try(system("convert tmp/47ub51331214966.ps tmp/47ub51331214966.png",intern=TRUE)) character(0) > try(system("convert tmp/59s981331214966.ps tmp/59s981331214966.png",intern=TRUE)) character(0) > try(system("convert tmp/6is3t1331214967.ps tmp/6is3t1331214967.png",intern=TRUE)) character(0) > try(system("convert tmp/7wqwq1331214967.ps tmp/7wqwq1331214967.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.682 0.448 2.133