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(1069.108 + ,1059.362 + ,1049.495 + ,1029.082 + ,1231.089 + ,1220.388 + ,1069.108 + ,968.521 + ,978.233 + ,978.233 + ,989.056 + ,1008.514 + ,1069.108 + ,1049.495 + ,1079.775 + ,1129.547 + ,1412.683 + ,1412.683 + ,1352.244 + ,1291.65 + ,1341.422 + ,1401.983 + ,1412.683 + ,1442.964 + ,1533.833 + ,1473.244 + ,1473.244 + ,1564.114 + ,1816.014 + ,1836.427 + ,1785.734 + ,1664.578 + ,1755.42 + ,1755.42 + ,1765.165 + ,1816.014 + ,1856.04 + ,1876.453 + ,1876.453 + ,1937.014 + ,2169.452 + ,2229.89 + ,2239.603 + ,2088.322 + ,2169.452 + ,2139.171 + ,2078.582 + ,2209.478 + ,2239.603 + ,2188.909 + ,2199.61 + ,2269.916 + ,2532.64 + ,2663.352 + ,2663.352 + ,2602.913 + ,2693.66 + ,2602.913 + ,2552.092 + ,2744.509 + ,2774.634 + ,2703.378 + ,2884.967 + ,2956.228 + ,3168.103 + ,3308.711 + ,3289.258 + ,3278.43 + ,3359.559 + ,3349.692 + ,3228.692 + ,3410.253 + ,3470.847 + ,3410.253 + ,3662.154 + ,3783.309 + ,4065.362 + ,4176.65 + ,4146.492 + ,4085.897 + ,4136.624 + ,4197.185 + ,3995.056 + ,4156.204 + ,4257.779 + ,4216.798 + ,4479.366 + ,4570.08 + ,4953.837 + ,5024.138 + ,4933.418 + ,4984.117 + ,5014.398 + ,5044.678 + ,4852.261 + ,5033.856 + ,5134.437 + ,5033.856 + ,5326.854 + ,5417.607 + ,5811.037 + ,5871.631 + ,5891.089 + ,5992.631 + ,5992.631 + ,6032.657 + ,5851.063 + ,5941.938 + ,6002.377 + ,5891.089 + ,6214.246 + ,6274.812 + ,6678.021 + ,6749.283 + ,6849.864 + ,6940.739 + ,6950.451 + ,6961.152 + ,6779.563 + ,6961.152) > 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] 120 > (np <- floor(n / par1)) [1] 10 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1069.108 1069.108 1533.833 1856.040 2239.603 2774.634 3470.847 4257.779 [2,] 1059.362 1049.495 1473.244 1876.453 2188.909 2703.378 3410.253 4216.798 [3,] 1049.495 1079.775 1473.244 1876.453 2199.610 2884.967 3662.154 4479.366 [4,] 1029.082 1129.547 1564.114 1937.014 2269.916 2956.228 3783.309 4570.080 [5,] 1231.089 1412.683 1816.014 2169.452 2532.640 3168.103 4065.362 4953.837 [6,] 1220.388 1412.683 1836.427 2229.890 2663.352 3308.711 4176.650 5024.138 [7,] 1069.108 1352.244 1785.734 2239.603 2663.352 3289.258 4146.492 4933.418 [8,] 968.521 1291.650 1664.578 2088.322 2602.913 3278.430 4085.897 4984.117 [9,] 978.233 1341.422 1755.420 2169.452 2693.660 3359.559 4136.624 5014.398 [10,] 978.233 1401.983 1755.420 2139.171 2602.913 3349.692 4197.185 5044.678 [11,] 989.056 1412.683 1765.165 2078.582 2552.092 3228.692 3995.056 4852.261 [12,] 1008.514 1442.964 1816.014 2209.478 2744.509 3410.253 4156.204 5033.856 [,9] [,10] [,11] [1,] 5134.437 6002.377 NA [2,] 5033.856 5891.089 NA [3,] 5326.854 6214.246 NA [4,] 5417.607 6274.812 NA [5,] 5811.037 6678.021 NA [6,] 5871.631 6749.283 NA [7,] 5891.089 6849.864 NA [8,] 5992.631 6940.739 NA [9,] 5992.631 6950.451 NA [10,] 6032.657 6961.152 NA [11,] 5851.063 6779.563 NA [12,] 5941.938 6961.152 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/wessaorg/rcomp/tmp/1l34f1312903824.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2c87y1312903824.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3navp1312903824.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4jrsz1312903824.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] [1,] 1069.108 1049.495 1049.495 1029.082 1231.089 1220.388 1069.108 968.521 [2,] 1533.833 1473.244 1473.244 1564.114 1816.014 1836.427 1785.734 1664.578 [3,] 2507.119 2446.144 2542.289 2613.072 2850.372 2986.032 2976.305 2940.671 [4,] 4257.779 4216.798 4479.366 4570.080 4953.837 5024.138 4933.418 4984.117 [5,] 6002.377 5891.089 6214.246 6274.812 6678.021 6749.283 6849.864 6940.739 [,9] [,10] [,11] [,12] [1,] 978.233 978.233 989.056 1008.514 [2,] 1755.420 1755.420 1765.165 1816.014 [3,] 3026.610 2976.302 2890.392 3077.381 [4,] 5014.398 5044.678 4852.261 5033.856 [5,] 6950.451 6961.152 6779.563 6961.152 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1146.126 1075.355 1040.310 1111.172 1282.590 1393.324 1403.597 1282.097 [2,] 3868.111 3816.932 4044.267 4114.972 4418.153 4578.739 4549.013 4599.246 [,9] [,10] [,11] [,12] [1,] 1398.294 1332.858 1347.956 1469.619 [2,] 4654.925 4619.747 4432.828 4685.143 $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(1069.108, 1533.833, 2507.1185, 4257.779, 6002.377, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/55efd1312903824.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,] 968.5210 1049.495 1473.244 1856.040 2188.909 2703.378 3410.253 4216.798 [2,] 983.6445 1104.661 1548.974 1906.733 2254.760 2920.597 3722.731 4524.723 [3,] 1039.2885 1346.833 1755.420 2113.747 2577.503 3253.561 4075.630 4943.628 [4,] 1069.1080 1412.683 1800.874 2189.465 2663.352 3329.202 4151.348 5019.268 [5,] 1069.1080 1442.964 1836.427 2239.603 2744.509 3410.253 4197.185 5044.678 [,9] [,10] [,11] [1,] 5033.856 5891.089 NA [2,] 5372.230 6244.529 NA [3,] 5861.347 6764.423 NA [4,] 5967.284 6945.595 NA [5,] 6032.657 6961.152 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1000.308 1206.342 1640.526 1984.791 2391.141 3067.194 3880.135 4718.062 [2,] 1078.269 1487.324 1870.314 2242.702 2763.864 3439.928 4271.124 5169.193 [,9] [,10] [,11] [1,] 5589.939 6444.662 NA [2,] 6132.755 7084.184 NA $out [1] 1231.089 1220.388 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(968.521, 983.6445, 1039.2885, 1069.108, 1069.108, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6ck3d1312903824.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 1697.489 4841.594 2441.116 [2,] 1837.496 5205.240 2708.533 [3,] 1949.361 5654.825 2832.415 [4,] 2020.956 5962.428 2918.045 [5,] 2054.181 5982.919 2989.048 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1865.684 5309.467 2736.855 [2,] 2033.039 6000.184 2927.975 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(1697.48947418082, 1837.49600191839, 1949.3610956597, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1l34f1312903824.ps tmp/1l34f1312903824.png",intern=TRUE)) character(0) > try(system("convert tmp/2c87y1312903824.ps tmp/2c87y1312903824.png",intern=TRUE)) character(0) > try(system("convert tmp/3navp1312903824.ps tmp/3navp1312903824.png",intern=TRUE)) character(0) > try(system("convert tmp/4jrsz1312903824.ps tmp/4jrsz1312903824.png",intern=TRUE)) character(0) > try(system("convert tmp/55efd1312903824.ps tmp/55efd1312903824.png",intern=TRUE)) character(0) > try(system("convert tmp/6ck3d1312903824.ps tmp/6ck3d1312903824.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.384 0.303 1.691