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(4.23,4.38,4.43,4.44,4.44,4.44,4.44,4.44,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.46,4.46,4.46,4.48,4.58,4.67,4.68,4.68,4.69,4.69,4.69,4.69,4.69,4.69,4.69,4.73,4.78,4.79,4.79,4.8,4.8,4.81,5.16,5.26,5.29,5.29,5.29,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.3,5.35,5.44,5.47,5.47,5.48,5.48,5.48,5.48,5.48,5.48,5.48,5.5,5.55,5.55,5.57,5.58,5.58,5.58,5.59,5.59,5.59,5.61,5.61,5.61,5.63,5.69,5.7,5.7,5.7,5.7,5.7,5.7,5.7) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.23 4.45 4.69 4.80 5.30 5.48 5.61 NA [2,] 4.38 4.45 4.69 4.81 5.30 5.48 5.61 NA [3,] 4.43 4.45 4.69 5.16 5.30 5.50 5.61 NA [4,] 4.44 4.45 4.69 5.26 5.35 5.55 5.63 NA [5,] 4.44 4.46 4.69 5.29 5.44 5.55 5.69 NA [6,] 4.44 4.46 4.69 5.29 5.47 5.57 5.70 NA [7,] 4.44 4.46 4.69 5.29 5.47 5.58 5.70 NA [8,] 4.44 4.48 4.73 5.30 5.48 5.58 5.70 NA [9,] 4.45 4.58 4.78 5.30 5.48 5.58 5.70 NA [10,] 4.45 4.67 4.79 5.30 5.48 5.59 5.70 NA [11,] 4.45 4.68 4.79 5.30 5.48 5.59 5.70 NA [12,] 4.45 4.68 4.80 5.30 5.48 5.59 5.70 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.15 0.00 0.00 0.01 0.00 0.00 0.00 NA [2,] 0.05 0.00 0.00 0.35 0.00 0.02 0.00 NA [3,] 0.01 0.00 0.00 0.10 0.05 0.05 0.02 NA [4,] 0.00 0.01 0.00 0.03 0.09 0.00 0.06 NA [5,] 0.00 0.00 0.00 0.00 0.03 0.02 0.01 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.01 0.00 NA [7,] 0.00 0.02 0.04 0.01 0.01 0.00 0.00 NA [8,] 0.01 0.10 0.05 0.00 0.00 0.00 0.00 NA [9,] 0.00 0.09 0.01 0.00 0.00 0.01 0.00 NA [10,] 0.00 0.01 0.00 0.00 0.00 0.00 0.00 NA [11,] 0.00 0.00 0.01 0.00 0.00 0.00 0.00 NA [12,] 0.00 0.01 0.00 0.00 0.00 0.02 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/1zoq91319183352.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/2xfz61319183352.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/3cyv91319183352.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/44uc71319183352.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] [,11] [,12] [1,] 4.23 4.38 4.43 4.44 4.440 4.440 4.440 4.440 4.45 4.450 4.450 4.450 [2,] 4.57 4.57 4.57 4.57 4.575 4.575 4.575 4.605 4.68 4.730 4.735 4.740 [3,] 4.80 4.81 5.16 5.26 5.290 5.290 5.290 5.300 5.30 5.300 5.300 5.300 [4,] 5.39 5.39 5.40 5.45 5.495 5.520 5.525 5.530 5.53 5.535 5.535 5.535 [5,] 5.61 5.61 5.61 5.63 5.690 5.700 5.700 5.700 5.70 5.700 5.700 5.700 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.310309 4.320309 4.664337 4.734478 4.740591 4.725661 4.722675 4.747605 [2,] 5.289691 5.299691 5.655663 5.785522 5.839409 5.854339 5.857325 5.852395 [,9] [,10] [,11] [,12] [1,] 4.792394 4.819267 4.822253 4.825239 [2,] 5.807606 5.780733 5.777747 5.774761 $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(4.23, 4.57, 4.8, 5.39, 5.61, 4.38, 4.57, 4.81, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/53lme1319183352.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.000 0.000 0.000 0.000 0.000 0 0.000 0.00 0.00 0 0 0.00 [2,] 0.000 0.000 0.005 0.000 0.000 0 0.000 0.00 0.00 0 0 0.00 [3,] 0.000 0.000 0.020 0.010 0.000 0 0.010 0.00 0.00 0 0 0.00 [4,] 0.005 0.035 0.050 0.045 0.015 0 0.015 0.03 0.01 0 0 0.01 [5,] 0.010 0.050 0.100 0.090 0.030 0 0.020 0.05 0.01 0 0 0.02 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.002985919 -0.02090144 -0.006873274 -0.01687327 -0.008957758 0 [2,] 0.002985919 0.02090144 0.046873274 0.03687327 0.008957758 0 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.001042242 -0.01791552 -0.005971839 0 0 -0.006450323 [2,] 0.018957758 0.01791552 0.005971839 0 0 0.006450323 $out [1] 0.15 0.35 0.01 0.04 0.10 0.09 0.01 0.01 $group [1] 1 2 6 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.00499999999999989, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/633e91319183352.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] [,7] [,8] [1,] 4.430 4.450 4.690 5.16 5.300 5.480 5.61 NA [2,] 4.435 4.450 4.690 5.21 5.325 5.525 5.62 NA [3,] 4.440 4.460 4.690 5.29 5.470 5.575 5.70 NA [4,] 4.450 4.625 4.785 5.30 5.480 5.585 5.70 NA [5,] 4.450 4.680 4.800 5.30 5.480 5.590 5.70 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.433158 4.380181 4.64667 5.24895 5.399303 5.547634 5.663511 NA [2,] 4.446842 4.539819 4.73333 5.33105 5.540697 5.602366 5.736489 NA $out [1] 4.23 4.38 4.80 4.81 $group [1] 1 1 4 4 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(4.43, 4.435, 4.44, 4.45, 4.45, 4.45, 4.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ciqg1319183352.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,] 4.937143 5.16 4.98000 [2,] 5.036429 5.21 4.99750 [3,] 5.089286 5.29 5.04875 [4,] 5.132143 5.30 5.11875 [5,] 5.142857 5.30 5.13750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.045630 5.24895 4.993447 [2,] 5.132942 5.33105 5.104053 $out [1] 4.80 4.81 $group [1] 2 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(4.93714285714286, 5.03642857142857, 5.08928571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zoq91319183352.ps tmp/1zoq91319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/2xfz61319183352.ps tmp/2xfz61319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/3cyv91319183352.ps tmp/3cyv91319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/44uc71319183352.ps tmp/44uc71319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/53lme1319183352.ps tmp/53lme1319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/633e91319183352.ps tmp/633e91319183352.png",intern=TRUE)) character(0) > try(system("convert tmp/7ciqg1319183352.ps tmp/7ciqg1319183352.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.570 0.289 1.873