R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(104.65,109.2,103.93,101.93,101.58,102.63,106.83,105.57,105,104.16,106.93,106.5,106.47,112.33,106.81,103.49,104.13,103.2,105.55,102.8,106.68,105.43,109.01,112.24,112.87,110.98,112.85,112.08,110.72,109.69,112.53,112.99,111.74,111.15,114.82,117.38,117.81,122.85,116.96,119.16,117.74,118.84,123.81,120.33,119.2,117.32,128.58,129.2,126.19,132.1,128.12,122.28,122.36,123.13,125.97,126.14,122.7,122.67,129.19,133.01,123.96,128.96,127.32,131.38,125.25,127.91,130.42,128.44,125.86,125.71,130.63,131.78,125.61,131.84,122.14,127.13,124.49,125.48,129.86,126.32,125.56,125.64,128.26,125.47,134.4,134.5,131.22,121.62,124.16,127.5,132.86,127.87,124.07,124.25,131.16,129.24,129.24,135.51,128.97,126.89,127.52,130.31,132.39,132.69,128.73,129.66,127.72,132.63,129.74,138.46,134.31,128.8,129.95,134.15,136.01,135.1,132.27,132.49,130.06,136.11,131.47,140.61,141.65,126.75,133.9,138.75,141.86,141.13,138.76,138.65,138.59,147.09,140.17,152.38,144.02,139.55,141.1,145.85,147.88,145.17) > 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] 140 > (np <- floor(n / par1)) [1] 11 > 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] 12 12 12 12 12 12 12 12 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 104.65 106.47 112.87 117.81 126.19 123.96 125.61 134.40 129.24 129.74 [2,] 109.20 112.33 110.98 122.85 132.10 128.96 131.84 134.50 135.51 138.46 [3,] 103.93 106.81 112.85 116.96 128.12 127.32 122.14 131.22 128.97 134.31 [4,] 101.93 103.49 112.08 119.16 122.28 131.38 127.13 121.62 126.89 128.80 [5,] 101.58 104.13 110.72 117.74 122.36 125.25 124.49 124.16 127.52 129.95 [6,] 102.63 103.20 109.69 118.84 123.13 127.91 125.48 127.50 130.31 134.15 [7,] 106.83 105.55 112.53 123.81 125.97 130.42 129.86 132.86 132.39 136.01 [8,] 105.57 102.80 112.99 120.33 126.14 128.44 126.32 127.87 132.69 135.10 [9,] 105.00 106.68 111.74 119.20 122.70 125.86 125.56 124.07 128.73 132.27 [10,] 104.16 105.43 111.15 117.32 122.67 125.71 125.64 124.25 129.66 132.49 [11,] 106.93 109.01 114.82 128.58 129.19 130.63 128.26 131.16 127.72 130.06 [12,] 106.50 112.24 117.38 129.20 133.01 131.78 125.47 129.24 132.63 136.11 [,11] [,12] [1,] 131.47 140.17 [2,] 140.61 152.38 [3,] 141.65 144.02 [4,] 126.75 139.55 [5,] 133.90 141.10 [6,] 138.75 145.85 [7,] 141.86 147.88 [8,] 141.13 145.17 [9,] 138.76 NA [10,] 138.65 NA [11,] 138.59 NA [12,] 147.09 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/www/html/rcomp/tmp/18rpu1261605957.ps",horizontal=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/www/html/rcomp/tmp/2iu3x1261605957.ps",horizontal=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/www/html/rcomp/tmp/370ww1261605957.ps",horizontal=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/www/html/rcomp/tmp/4whxc1261605957.ps",horizontal=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] [1,] 104.650 109.200 103.930 101.930 101.580 102.630 105.550 102.800 105.000 [2,] 115.340 117.590 114.905 115.620 114.230 114.265 118.170 116.660 115.470 [3,] 125.900 131.970 127.720 124.515 124.325 126.490 130.140 127.095 124.070 [4,] 130.605 136.985 132.765 127.965 128.735 132.230 134.435 133.895 127.295 [5,] 140.170 152.380 144.020 139.550 141.100 145.850 147.880 145.170 138.760 [,10] [,11] [,12] [1,] 104.160 109.010 106.500 [2,] 114.235 121.270 121.425 [3,] 124.250 128.580 129.240 [4,] 127.685 130.345 132.820 [5,] 138.650 138.590 147.090 $n [1] 12 12 12 12 12 12 12 12 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 118.9375 123.1238 119.5739 118.8844 117.7092 118.2960 122.7214 119.234 [2,] 132.8625 140.8162 135.8661 130.1456 130.9408 134.6840 137.5586 134.956 [,9] [,10] [,11] [,12] [1,] 118.4367 117.8426 124.2568 123.8116 [2,] 129.7033 130.6574 132.9032 134.6684 $out [1] 106.93 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(104.65, 115.34, 125.9, 130.605, 140.17, 109.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57u5p1261605957.ps",horizontal=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] [,9] [1,] 101.580 102.80 109.690 116.960 122.280 123.960 124.490 121.620 126.890 [2,] 103.280 103.81 111.065 117.775 122.685 125.785 125.475 124.205 128.225 [3,] 104.825 106.01 112.305 119.180 126.055 128.175 125.625 128.555 129.450 [4,] 106.665 107.91 112.930 123.330 128.655 130.525 127.695 132.040 132.510 [5,] 109.200 112.33 114.820 129.200 133.010 131.780 129.860 134.500 135.510 [,10] [,11] [,12] [1,] 128.800 131.470 139.550 [2,] 130.005 136.245 140.635 [3,] 133.320 138.755 144.595 [4,] 135.555 141.390 146.865 [5,] 138.460 147.090 152.380 $n [1] 12 12 12 12 12 12 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 103.2811 104.1400 111.4544 116.6463 123.3320 126.0131 124.6124 124.9814 [2,] 106.3689 107.8800 113.1556 121.7137 128.7780 130.3369 126.6376 132.1286 [,9] [,10] [,11] [,12] [1,] 127.4956 130.7886 136.4083 141.1148 [2,] 131.4044 135.8514 141.1017 148.0752 $out [1] 117.38 131.84 122.14 126.75 $group [1] 3 7 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(101.58, 103.28, 104.825, 106.665, 109.2, 102.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65t4i1261605957.ps",horizontal=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,] 10.07060 31.660 9.07500 [2,] 11.00481 35.005 11.61000 [3,] 11.58724 39.805 13.05375 [4,] 13.10689 42.350 14.75750 [5,] 13.44687 43.220 16.06000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.62847 36.45490 11.61815 [2,] 12.54601 43.15510 14.48935 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(10.0706001446154, 11.0048122730796, 11.5872417276353, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/18rpu1261605957.ps tmp/18rpu1261605957.png",intern=TRUE)) character(0) > try(system("convert tmp/2iu3x1261605957.ps tmp/2iu3x1261605957.png",intern=TRUE)) character(0) > try(system("convert tmp/370ww1261605957.ps tmp/370ww1261605957.png",intern=TRUE)) character(0) > try(system("convert tmp/4whxc1261605957.ps tmp/4whxc1261605957.png",intern=TRUE)) character(0) > try(system("convert tmp/57u5p1261605957.ps tmp/57u5p1261605957.png",intern=TRUE)) character(0) > try(system("convert tmp/65t4i1261605957.ps tmp/65t4i1261605957.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.048 0.812 1.388