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(5.82,5.85,5.87,5.88,5.9,5.91,5.94,5.97,5.98,6,6.01,6.02,6.11,6.13,6.15,6.15,6.16,6.18,6.21,6.22,6.23,6.26,6.28,6.28,6.29,6.32,6.36,6.37,6.38,6.38,6.4,6.41,6.42,6.43,6.44,6.47,6.47,6.48,6.51,6.54,6.56,6.57,6.6,6.62,6.65,6.71,6.76,6.78,6.8,6.83,6.86,6.86,6.87,6.88,6.9,6.92,6.93,6.94,6.96,6.98,6.99,7.01,7.06,7.07,7.08,7.08,7.1,7.11,7.22,7.24,7.25,7.26) > 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,] 5.82 6.11 6.29 6.47 6.80 6.99 NA [2,] 5.85 6.13 6.32 6.48 6.83 7.01 NA [3,] 5.87 6.15 6.36 6.51 6.86 7.06 NA [4,] 5.88 6.15 6.37 6.54 6.86 7.07 NA [5,] 5.90 6.16 6.38 6.56 6.87 7.08 NA [6,] 5.91 6.18 6.38 6.57 6.88 7.08 NA [7,] 5.94 6.21 6.40 6.60 6.90 7.10 NA [8,] 5.97 6.22 6.41 6.62 6.92 7.11 NA [9,] 5.98 6.23 6.42 6.65 6.93 7.22 NA [10,] 6.00 6.26 6.43 6.71 6.94 7.24 NA [11,] 6.01 6.28 6.44 6.76 6.96 7.25 NA [12,] 6.02 6.28 6.47 6.78 6.98 7.26 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.03 0.02 0.03 0.01 0.03 0.02 NA [2,] 0.02 0.02 0.04 0.03 0.03 0.05 NA [3,] 0.01 0.00 0.01 0.03 0.00 0.01 NA [4,] 0.02 0.01 0.01 0.02 0.01 0.01 NA [5,] 0.01 0.02 0.00 0.01 0.01 0.00 NA [6,] 0.03 0.03 0.02 0.03 0.02 0.02 NA [7,] 0.03 0.01 0.01 0.02 0.02 0.01 NA [8,] 0.01 0.01 0.01 0.03 0.01 0.11 NA [9,] 0.02 0.03 0.01 0.06 0.01 0.02 NA [10,] 0.01 0.02 0.01 0.05 0.02 0.01 NA [11,] 0.01 0.00 0.03 0.02 0.02 0.01 NA [12,] 0.09 0.01 0.00 0.02 0.01 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/1qccp1319665504.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/2qssd1319665504.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/39kht1319665504.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/4x8rr1319665504.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,] 5.82 5.85 5.870 5.880 5.90 5.910 5.94 5.970 5.980 6.00 6.01 6.020 [2,] 6.11 6.13 6.150 6.150 6.16 6.180 6.21 6.220 6.230 6.26 6.28 6.280 [3,] 6.38 6.40 6.435 6.455 6.47 6.475 6.50 6.515 6.535 6.57 6.60 6.625 [4,] 6.80 6.83 6.860 6.860 6.87 6.880 6.90 6.920 6.930 6.94 6.96 6.980 [5,] 6.99 7.01 7.060 7.070 7.08 7.080 7.10 7.110 7.220 7.24 7.25 7.260 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.934928 5.948477 5.977027 5.997027 6.012027 6.023477 6.054928 6.063477 [2,] 6.825072 6.851523 6.892973 6.912973 6.927973 6.926523 6.945072 6.966523 [,9] [,10] [,11] [,12] [1,] 6.083477 6.131378 6.161378 6.173477 [2,] 6.986523 7.008622 7.038622 7.076523 $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(5.82, 6.11, 6.38, 6.8, 6.99, 5.85, 6.13, 6.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5tmws1319665504.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.010 0.02 0.00 0.01 0.00 0.020 0.010 0.01 0.01 0.010 0.000 0.00 [2,] 0.020 0.02 0.00 0.01 0.00 0.020 0.010 0.01 0.01 0.010 0.010 0.01 [3,] 0.025 0.03 0.01 0.01 0.01 0.025 0.015 0.01 0.02 0.015 0.015 0.01 [4,] 0.030 0.04 0.01 0.02 0.01 0.030 0.020 0.03 0.03 0.020 0.020 0.02 [5,] 0.030 0.05 0.01 0.02 0.02 0.030 0.030 0.03 0.03 0.020 0.030 0.02 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01854968 0.01709935 0.003549677 0.003549677 0.003549677 0.01854968 [2,] 0.03145032 0.04290065 0.016450323 0.016450323 0.016450323 0.03145032 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.008549677 -0.002900646 0.007099354 0.008549677 0.008549677 0.002934025 [2,] 0.021450323 0.022900646 0.032900646 0.021450323 0.021450323 0.017065975 $out [1] 0.03 0.11 0.06 0.05 0.09 $group [1] 3 8 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.0100000000000007, 0.0199999999999996, 0.0249999999999995, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6h8fl1319665504.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,] 5.820 6.110 6.290 6.470 6.800 6.990 NA [2,] 5.875 6.150 6.365 6.525 6.860 7.065 NA [3,] 5.925 6.195 6.390 6.585 6.890 7.090 NA [4,] 5.990 6.245 6.425 6.680 6.935 7.230 NA [5,] 6.020 6.280 6.470 6.780 6.980 7.260 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 5.872548 6.15167 6.362634 6.514303 6.855792 7.014742 NA [2,] 5.977452 6.23833 6.417366 6.655697 6.924208 7.165258 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(5.82, 5.875, 5.925, 5.99, 6.02, 6.11, 6.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/737f91319665504.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,] 6.413333 6.3800 6.436250 [2,] 6.473333 6.4450 6.490000 [3,] 6.512500 6.4875 6.528750 [4,] 6.584167 6.5525 6.580625 [5,] 6.631667 6.6250 6.628750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.461948 6.438469 6.487415 [2,] 6.563052 6.536531 6.570085 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.41333333333333, 6.47333333333333, 6.5125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qccp1319665504.ps tmp/1qccp1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/2qssd1319665504.ps tmp/2qssd1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/39kht1319665504.ps tmp/39kht1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/4x8rr1319665504.ps tmp/4x8rr1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/5tmws1319665504.ps tmp/5tmws1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/6h8fl1319665504.ps tmp/6h8fl1319665504.png",intern=TRUE)) character(0) > try(system("convert tmp/737f91319665504.ps tmp/737f91319665504.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.796 0.428 2.229