R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(100.00,100.33,100.50,100.68,100.49,100.17,100.13,100.50,101.19,101.25,101.18,101.25,101.00,101.22,101.46,102.05,102.62,102.90,103.10,103.51,103.45,103.50,104.08,104.48,104.75,104.70,104.33,104.11,104.43,104.85,105.11,104.68,105.16,104.71,104.51,104.59,104.40,103.83,103.96,103.71,103.37,103.48,103.15,102.91,103.10,103.03,103.02,103.02,103.31,103.08,103.53,103.68,103.54,103.72,103.94,103.92,104.28,105.03,105.43,105.80,106.03,106.05,106.00,106.50,106.78,106.55,106.46,106.51,106.36,106.42,106.51,106.29,106.01,106.03,106.31,106.19,106.52,106.71,107.00,107.02,107.31,107.23,107.19,107.36,107.51,107.86,108.34,108.48,108.22,108.04) > 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] 90 > (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] 8 8 8 8 8 8 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.00 101.00 104.75 104.40 103.31 106.03 106.01 107.51 [2,] 100.33 101.22 104.70 103.83 103.08 106.05 106.03 107.86 [3,] 100.50 101.46 104.33 103.96 103.53 106.00 106.31 108.34 [4,] 100.68 102.05 104.11 103.71 103.68 106.50 106.19 108.48 [5,] 100.49 102.62 104.43 103.37 103.54 106.78 106.52 108.22 [6,] 100.17 102.90 104.85 103.48 103.72 106.55 106.71 108.04 [7,] 100.13 103.10 105.11 103.15 103.94 106.46 107.00 NA [8,] 100.50 103.51 104.68 102.91 103.92 106.51 107.02 NA [9,] 101.19 103.45 105.16 103.10 104.28 106.36 107.31 NA [10,] 101.25 103.50 104.71 103.03 105.03 106.42 107.23 NA [11,] 101.18 104.08 104.51 103.02 105.43 106.51 107.19 NA [12,] 101.25 104.48 104.59 103.02 105.80 106.29 107.36 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.33 0.22 -0.05 -0.57 -0.23 0.02 0.02 0.35 [2,] 0.17 0.24 -0.37 0.13 0.45 -0.05 0.28 0.48 [3,] 0.18 0.59 -0.22 -0.25 0.15 0.50 -0.12 0.14 [4,] -0.19 0.57 0.32 -0.34 -0.14 0.28 0.33 -0.26 [5,] -0.32 0.28 0.42 0.11 0.18 -0.23 0.19 -0.18 [6,] -0.04 0.20 0.26 -0.33 0.22 -0.09 0.29 NA [7,] 0.37 0.41 -0.43 -0.24 -0.02 0.05 0.02 NA [8,] 0.69 -0.06 0.48 0.19 0.36 -0.15 0.29 NA [9,] 0.06 0.05 -0.45 -0.07 0.75 0.06 -0.08 NA [10,] -0.07 0.58 -0.20 -0.01 0.40 0.09 -0.04 NA [11,] 0.07 0.40 0.08 0.00 0.37 -0.22 0.17 NA [12,] -0.25 0.27 -0.19 0.29 0.23 -0.28 0.15 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/html/rcomp/tmp/1qd3q1225382936.ps",horizontal=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/html/rcomp/tmp/2ae231225382936.ps",horizontal=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/html/rcomp/tmp/39dcm1225382936.ps",horizontal=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/html/rcomp/tmp/4lnto1225382936.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,] 100.000 100.330 100.500 100.680 100.490 100.170 100.130 100.500 101.190 [2,] 102.155 102.150 102.495 102.865 102.995 103.190 103.125 103.210 103.275 [3,] 104.575 104.265 104.145 103.910 103.985 104.285 103.940 103.920 104.280 [4,] 106.020 106.040 106.155 106.345 106.650 106.630 105.785 105.595 105.760 [5,] 107.510 107.860 108.340 108.480 108.220 108.040 107.000 107.020 107.310 [,10] [,11] [,12] [1,] 101.250 101.18 101.250 [2,] 103.265 103.55 103.750 [3,] 104.710 104.51 104.590 [4,] 105.725 105.97 106.045 [5,] 107.230 107.19 107.360 $n [1] 8 8 8 8 8 8 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 102.4160 102.092 102.1005 101.9660 101.9433 102.3634 102.3515 102.4957 [2,] 106.7340 106.438 106.1895 105.8540 106.0267 106.2066 105.5285 105.3443 [,9] [,10] [,11] [,12] [1,] 102.796 103.2409 103.0648 103.2195 [2,] 105.764 106.1791 105.9552 105.9605 $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(100, 102.155, 104.575, 106.02, 107.51, 100.33, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cn9y1225382936.ps",horizontal=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] [1,] -0.570 -0.370 -0.250 -0.340 -0.320 -0.330 -0.43 -0.150 -0.080 -0.200 [2,] -0.140 0.040 -0.170 -0.225 -0.205 -0.065 -0.13 0.065 -0.075 -0.055 [3,] 0.020 0.205 0.145 0.070 0.145 0.200 0.02 0.290 0.050 -0.010 [4,] 0.275 0.365 0.340 0.325 0.235 0.240 0.21 0.420 0.060 0.245 [5,] 0.350 0.480 0.590 0.570 0.420 0.290 0.41 0.690 0.060 0.580 [,11] [,12] [1,] -0.220 -0.28 [2,] 0.035 -0.22 [3,] 0.080 0.15 [4,] 0.270 0.25 [5,] 0.400 0.29 $n [1] 8 8 8 8 8 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2118250 0.02345033 -0.1398933 -0.2372379 -0.1007903 0.01785892 [2,] 0.2518250 0.38654967 0.4298933 0.3772379 0.3907903 0.38214108 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1830425 0.07799973 -0.03061982 -0.1891552 -0.06033821 -0.1306764 [2,] 0.2230425 0.50200027 0.13061982 0.1691552 0.22033821 0.4306764 $out [1] -0.45 0.75 $group [1] 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.570000000000007, -0.140000000000001, 0.019999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ixzu1225382936.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] [1,] 100.000 101.000 104.11 102.910 103.080 106.00 106.010 107.51 [2,] 100.250 101.755 104.47 103.025 103.535 106.17 106.250 107.86 [3,] 100.500 103.000 104.69 103.260 103.820 106.44 106.855 108.13 [4,] 101.185 103.505 104.80 103.770 104.655 106.51 107.210 108.34 [5,] 101.250 104.480 105.16 104.400 105.800 106.78 107.360 108.48 $n [1] 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.0735 102.2018 104.5395 102.9202 103.3092 106.2849 106.4171 107.8204 [2,] 100.9265 103.7982 104.8405 103.5998 104.3308 106.5951 107.2929 108.4396 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(100, 100.25, 100.5, 101.185, 101.25, 101, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qn4w1225382936.ps",horizontal=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,] 104.1262 103.9100 104.3250 [2,] 104.1438 103.9625 104.4288 [3,] 104.4161 104.2725 104.5312 [4,] 104.5244 104.5425 104.8269 [5,] 104.6843 104.7100 104.9625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 104.2425 104.0080 104.3497 [2,] 104.5897 104.5370 104.7128 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(104.12625, 104.14375, 104.416071428571, 104.524375, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qd3q1225382936.ps tmp/1qd3q1225382936.png") > system("convert tmp/2ae231225382936.ps tmp/2ae231225382936.png") > system("convert tmp/39dcm1225382936.ps tmp/39dcm1225382936.png") > system("convert tmp/4lnto1225382936.ps tmp/4lnto1225382936.png") > system("convert tmp/5cn9y1225382936.ps tmp/5cn9y1225382936.png") > system("convert tmp/6ixzu1225382936.ps tmp/6ixzu1225382936.png") > system("convert tmp/7qn4w1225382936.ps tmp/7qn4w1225382936.png") > > > proc.time() user system elapsed 1.451 0.973 2.397