R version 2.12.1 (2010-12-16) Copyright (C) 2010 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(2.02,2.02,2.02,2.02,2.03,2.03,2.03,2.04,2.04,2.05,2.06,2.06,2.07,2.08,2.08,2.08,2.09,2.09,2.09,2.1,2.1,2.1,2.11,2.11,2.11,2.13,2.18,2.2,2.21,2.21,2.22,2.22,2.23,2.23,2.23,2.23,2.24,2.25,2.26,2.27,2.28,2.29,2.3,2.3,2.3,2.32,2.32,2.32,2.33,2.34,2.34,2.34,2.35,2.35,2.36,2.37,2.37,2.37,2.38,2.38,2.38,2.39,2.4,2.41,2.42,2.43,2.43,2.43,2.43,2.44,2.44,2.45) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.02 2.07 2.11 2.24 2.33 2.38 NA [2,] 2.02 2.08 2.13 2.25 2.34 2.39 NA [3,] 2.02 2.08 2.18 2.26 2.34 2.40 NA [4,] 2.02 2.08 2.20 2.27 2.34 2.41 NA [5,] 2.03 2.09 2.21 2.28 2.35 2.42 NA [6,] 2.03 2.09 2.21 2.29 2.35 2.43 NA [7,] 2.03 2.09 2.22 2.30 2.36 2.43 NA [8,] 2.04 2.10 2.22 2.30 2.37 2.43 NA [9,] 2.04 2.10 2.23 2.30 2.37 2.43 NA [10,] 2.05 2.10 2.23 2.32 2.37 2.44 NA [11,] 2.06 2.11 2.23 2.32 2.38 2.44 NA [12,] 2.06 2.11 2.23 2.32 2.38 2.45 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.01 0.02 0.01 0.01 0.01 NA [2,] 0.00 0.00 0.05 0.01 0.00 0.01 NA [3,] 0.00 0.00 0.02 0.01 0.00 0.01 NA [4,] 0.01 0.01 0.01 0.01 0.01 0.01 NA [5,] 0.00 0.00 0.00 0.01 0.00 0.01 NA [6,] 0.00 0.00 0.01 0.01 0.01 0.00 NA [7,] 0.01 0.01 0.00 0.00 0.01 0.00 NA [8,] 0.00 0.00 0.01 0.00 0.00 0.00 NA [9,] 0.01 0.00 0.00 0.02 0.00 0.01 NA [10,] 0.01 0.01 0.00 0.00 0.01 0.00 NA [11,] 0.00 0.00 0.00 0.00 0.00 0.01 NA [12,] 0.01 0.00 0.01 0.01 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/www/rcomp/tmp/1oyac1319631112.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/www/rcomp/tmp/24f281319631112.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/www/rcomp/tmp/3eumv1319631112.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/www/rcomp/tmp/4n7hk1319631112.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,] 2.020 2.02 2.02 2.020 2.030 2.03 2.03 2.04 2.040 2.050 2.060 2.060 [2,] 2.070 2.08 2.08 2.080 2.090 2.09 2.09 2.10 2.100 2.100 2.110 2.110 [3,] 2.175 2.19 2.22 2.235 2.245 2.25 2.26 2.26 2.265 2.275 2.275 2.275 [4,] 2.330 2.34 2.34 2.340 2.350 2.35 2.36 2.37 2.370 2.370 2.380 2.380 [5,] 2.380 2.39 2.40 2.410 2.420 2.43 2.43 2.43 2.430 2.440 2.440 2.450 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.007292 2.022292 2.052292 2.067292 2.077292 2.082292 2.085841 2.085841 [2,] 2.342708 2.357708 2.387708 2.402708 2.412708 2.417708 2.434159 2.434159 [,9] [,10] [,11] [,12] [1,] 2.090841 2.100841 2.100841 2.100841 [2,] 2.439159 2.449159 2.449159 2.449159 $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(2.02, 2.07, 2.175, 2.33, 2.38, 2.02, 2.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/58j3y1319631112.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.01 0.000 0.000 0.01 0.00 0.000 0.000 0 0.000 0.000 0 0.00 [2,] 0.01 0.000 0.000 0.01 0.00 0.000 0.000 0 0.000 0.000 0 0.00 [3,] 0.01 0.005 0.005 0.01 0.00 0.005 0.005 0 0.005 0.005 0 0.01 [4,] 0.01 0.010 0.010 0.01 0.01 0.010 0.010 0 0.010 0.010 0 0.01 [5,] 0.01 0.010 0.020 0.01 0.01 0.010 0.010 0 0.020 0.010 0 0.01 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01 -0.001450323 -0.001450323 0.01 -0.006450323 -0.001450323 -0.001450323 [2,] 0.01 0.011450323 0.011450323 0.01 0.006450323 0.011450323 0.011450323 [,8] [,9] [,10] [,11] [,12] [1,] 0 -0.001450323 -0.001450323 0 0.002934025 [2,] 0 0.011450323 0.011450323 0 0.017065975 $out [1] 0.00 0.02 0.05 0.01 0.01 0.01 $group [1] 1 1 2 4 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.00999999999999979, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6l5yn1319631112.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] [1,] 2.020 2.07 2.180 2.240 2.330 2.380 NA [2,] 2.020 2.08 2.190 2.265 2.340 2.405 NA [3,] 2.030 2.09 2.215 2.295 2.355 2.430 NA [4,] 2.045 2.10 2.230 2.310 2.370 2.435 NA [5,] 2.060 2.11 2.230 2.320 2.380 2.450 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.018597 2.080878 2.196756 2.274475 2.341317 2.416317 NA [2,] 2.041403 2.099122 2.233244 2.315525 2.368683 2.443683 NA $out [1] 2.11 2.13 $group [1] 3 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.02, 2.02, 2.03, 2.045, 2.06, 2.07, 2.08, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7nkz51319631112.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,] 2.191667 2.1750 2.193750 [2,] 2.216667 2.2275 2.214375 [3,] 2.235833 2.2550 2.230625 [4,] 2.248333 2.2700 2.243750 [5,] 2.258333 2.2750 2.252500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.221390 2.235615 2.217227 [2,] 2.250277 2.274385 2.244023 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.19166666666667, 2.21666666666667, 2.23583333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1oyac1319631112.ps tmp/1oyac1319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/24f281319631112.ps tmp/24f281319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/3eumv1319631112.ps tmp/3eumv1319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/4n7hk1319631112.ps tmp/4n7hk1319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/58j3y1319631112.ps tmp/58j3y1319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/6l5yn1319631112.ps tmp/6l5yn1319631112.png",intern=TRUE)) character(0) > try(system("convert tmp/7nkz51319631112.ps tmp/7nkz51319631112.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.024 0.552 2.560