R version 2.8.0 (2008-10-20) 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(27.00,26.88,27.38,26.82,27.00,26.15,25.85,26.17,25.66,25.72,25.42,25.10,26.20,26.39,26.27,26.63,21.10,20.30,20.61,21.05,20.45,20.91,21.22,20.85,21.90,22.71,22.40,22.81,23.96,23.37,23.55,23.01,22.63,22.63,22.00,22.15,22.00,22.00,21.84,22.10,22.37,21.83,21.77,21.89,20.76,20.21,20.19,20.01,19.16,18.50,17.41,18.14,18.60,18.32,18.40,18.16,17.29,16.65,16.36,16.32,17.37,17.30,18.10,19.00,18.38,18.41,18.10,17.87,18.70,18.81,18.88,19.44,18.60,18.80,18.62,18.24,17.84,17.85,17.67,17.99,18.15,18.39,18.07,18.39) > par1 = '36' > #'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] 84 > (np <- floor(n / par1)) [1] 2 > 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] 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 > arr [,1] [,2] [,3] [1,] 27.00 22.00 18.60 [2,] 26.88 22.00 18.80 [3,] 27.38 21.84 18.62 [4,] 26.82 22.10 18.24 [5,] 27.00 22.37 17.84 [6,] 26.15 21.83 17.85 [7,] 25.85 21.77 17.67 [8,] 26.17 21.89 17.99 [9,] 25.66 20.76 18.15 [10,] 25.72 20.21 18.39 [11,] 25.42 20.19 18.07 [12,] 25.10 20.01 18.39 [13,] 26.20 19.16 NA [14,] 26.39 18.50 NA [15,] 26.27 17.41 NA [16,] 26.63 18.14 NA [17,] 21.10 18.60 NA [18,] 20.30 18.32 NA [19,] 20.61 18.40 NA [20,] 21.05 18.16 NA [21,] 20.45 17.29 NA [22,] 20.91 16.65 NA [23,] 21.22 16.36 NA [24,] 20.85 16.32 NA [25,] 21.90 17.37 NA [26,] 22.71 17.30 NA [27,] 22.40 18.10 NA [28,] 22.81 19.00 NA [29,] 23.96 18.38 NA [30,] 23.37 18.41 NA [31,] 23.55 18.10 NA [32,] 23.01 17.87 NA [33,] 22.63 18.70 NA [34,] 22.63 18.81 NA [35,] 22.00 18.88 NA [36,] 22.15 19.44 NA > darr [,1] [,2] [,3] [1,] -0.12 0.00 0.20 [2,] 0.50 -0.16 -0.18 [3,] -0.56 0.26 -0.38 [4,] 0.18 0.27 -0.40 [5,] -0.85 -0.54 0.01 [6,] -0.30 -0.06 -0.18 [7,] 0.32 0.12 0.32 [8,] -0.51 -1.13 0.16 [9,] 0.06 -0.55 0.24 [10,] -0.30 -0.02 -0.32 [11,] -0.32 -0.18 0.32 [12,] 1.10 -0.85 NA [13,] 0.19 -0.66 NA [14,] -0.12 -1.09 NA [15,] 0.36 0.73 NA [16,] -5.53 0.46 NA [17,] -0.80 -0.28 NA [18,] 0.31 0.08 NA [19,] 0.44 -0.24 NA [20,] -0.60 -0.87 NA [21,] 0.46 -0.64 NA [22,] 0.31 -0.29 NA [23,] -0.37 -0.04 NA [24,] 1.05 1.05 NA [25,] 0.81 -0.07 NA [26,] -0.31 0.80 NA [27,] 0.41 0.90 NA [28,] 1.15 -0.62 NA [29,] -0.59 0.03 NA [30,] 0.18 -0.31 NA [31,] -0.54 -0.23 NA [32,] -0.38 0.83 NA [33,] 0.00 0.11 NA [34,] -0.63 0.07 NA [35,] 0.15 0.56 NA [36,] -0.15 -0.84 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/freestat/rcomp/tmp/1aczl1243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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/freestat/rcomp/tmp/2ox121243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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/freestat/rcomp/tmp/36ak81243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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/freestat/rcomp/tmp/4fto31243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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] [1,] 18.6 18.80 18.62 18.24 17.840 17.85 17.67 17.99 18.150 18.390 18.070 [2,] 20.3 20.40 20.23 20.17 20.105 19.84 19.72 19.94 19.455 19.300 19.130 [3,] 22.0 22.00 21.84 22.10 22.370 21.83 21.77 21.89 20.760 20.210 20.190 [4,] 24.5 24.44 24.61 24.46 24.685 23.99 23.81 24.03 23.210 22.965 22.805 [5,] 27.0 26.88 27.38 26.82 27.000 26.15 25.85 26.17 25.660 25.720 25.420 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] 18.390 19.16 18.500 17.41 18.140 18.60 18.32 18.400 18.160 17.29 16.65 [2,] 19.200 19.16 18.500 17.41 18.140 18.60 18.32 18.400 18.160 17.29 16.65 [3,] 20.010 22.68 22.445 21.84 22.385 19.85 19.31 19.505 19.605 18.87 18.78 [4,] 22.555 26.20 26.390 26.27 26.630 21.10 20.30 20.610 21.050 20.45 20.91 [5,] 25.100 26.20 26.390 26.27 26.630 21.10 20.30 20.610 21.050 20.45 20.91 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [1,] 16.36 16.320 17.370 17.300 18.10 19.000 18.38 18.41 18.100 17.87 18.700 [2,] 16.36 16.320 17.370 17.300 18.10 19.000 18.38 18.41 18.100 17.87 18.700 [3,] 18.79 18.585 19.635 20.005 20.25 20.905 21.17 20.89 20.825 20.44 20.665 [4,] 21.22 20.850 21.900 22.710 22.40 22.810 23.96 23.37 23.550 23.01 22.630 [5,] 21.22 20.850 21.900 22.710 22.40 22.810 23.96 23.37 23.550 23.01 22.630 [,34] [,35] [,36] [1,] 18.81 18.88 19.440 [2,] 18.81 18.88 19.440 [3,] 20.72 20.44 20.795 [4,] 22.63 22.00 22.150 [5,] 22.63 22.00 22.150 $n [1] 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 18.16870 18.31466 17.84451 18.18660 18.19206 18.04431 18.03905 18.15905 [2,] 25.83130 25.68534 25.83549 26.01340 26.54794 25.61569 25.50095 25.62095 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 17.33464 16.86674 16.83762 16.94952 14.81471 13.63007 11.94135 12.89973 [2,] 24.18536 23.55326 23.54238 23.07048 30.54529 31.25993 31.73865 31.87027 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 17.05693 17.09789 17.03592 16.37621 15.33956 14.02061 13.36027 13.52395 [2,] 22.64307 21.52211 21.97408 22.83379 22.40044 23.53939 24.21973 23.64605 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 14.57395 13.96079 15.44592 16.64836 14.93586 15.34855 14.73610 14.69744 [2,] 24.69605 26.04921 25.05408 25.16164 27.40414 26.43145 26.91390 26.18256 [,33] [,34] [,35] [,36] [1,] 16.27429 16.45219 16.95425 17.76731 [2,] 25.05571 24.98781 23.92575 23.82269 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(18.6, 20.3, 22, 24.5, 27, 18.8, 20.4, 22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5j7u71243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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] [1,] -0.12 -0.18 -0.56 -0.400 -0.850 -0.30 0.12 -1.130 -0.550 -0.32 -0.32 [2,] -0.06 -0.17 -0.47 -0.110 -0.695 -0.24 0.22 -0.820 -0.245 -0.31 -0.25 [3,] 0.00 -0.16 -0.38 0.180 -0.540 -0.18 0.32 -0.510 0.060 -0.30 -0.18 [4,] 0.10 0.17 -0.06 0.225 -0.265 -0.12 0.32 -0.175 0.150 -0.16 0.07 [5,] 0.20 0.50 0.26 0.270 0.010 -0.06 0.32 0.160 0.240 -0.02 0.32 [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [1,] -0.850 -0.660 -1.090 0.360 -5.530 -0.80 0.080 -0.24 -0.870 -0.64 -0.29 [2,] -0.850 -0.660 -1.090 0.360 -5.530 -0.80 0.080 -0.24 -0.870 -0.64 -0.29 [3,] 0.125 -0.235 -0.605 0.545 -2.535 -0.54 0.195 0.10 -0.735 -0.09 0.01 [4,] 1.100 0.190 -0.120 0.730 0.460 -0.28 0.310 0.44 -0.600 0.46 0.31 [5,] 1.100 0.190 -0.120 0.730 0.460 -0.28 0.310 0.44 -0.600 0.46 0.31 [,23] [,24] [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [1,] -0.370 1.05 -0.07 -0.310 0.410 -0.620 -0.59 -0.310 -0.540 -0.380 0.000 [2,] -0.370 1.05 -0.07 -0.310 0.410 -0.620 -0.59 -0.310 -0.540 -0.380 0.000 [3,] -0.205 1.05 0.37 0.245 0.655 0.265 -0.28 -0.065 -0.385 0.225 0.055 [4,] -0.040 1.05 0.81 0.800 0.900 1.150 0.03 0.180 -0.230 0.830 0.110 [5,] -0.040 1.05 0.81 0.800 0.900 1.150 0.03 0.180 -0.230 0.830 0.110 [,34] [,35] [,36] [1,] -0.63 0.150 -0.840 [2,] -0.63 0.150 -0.840 [3,] -0.28 0.355 -0.495 [4,] 0.07 0.560 -0.150 [5,] 0.07 0.560 -0.150 $n [1] 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1459541 -0.4701526 -0.754007504 -0.1255915 -0.9322518 -0.28946561 [2,] 0.1459541 0.1501526 -0.005992496 0.4855915 -0.1477482 -0.07053439 [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 0.2287787 -1.09837766 -0.3003243 -0.436832 -0.4719083 -2.053596 -1.1846444 [2,] 0.4112213 0.07837766 0.4203243 -0.163168 0.1119083 2.303596 0.7146444 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] -1.6887119 0.1316254 -9.2272 -1.12095893 -0.0619626 -0.6597155 -1.0366518 [2,] 0.4787119 0.9583746 4.1572 0.04095893 0.4519626 0.8597155 -0.4333482 [,21] [,22] [,23] [,24] [,25] [,26] [,27] [1,] -1.318952 -0.6603372 -0.5736855 1.05 -0.6131613 -0.9951239 0.1075579 [2,] 1.138952 0.6803372 0.1636855 1.05 1.3531613 1.4851239 1.2024421 [,28] [,29] [,30] [,31] [,32] [,33] [1,] -1.712495 -0.9726818 -0.6124421 -0.7313409 -1.126847 -0.06789516 [2,] 2.242495 0.4126818 0.4824421 -0.0386591 1.576847 0.17789516 [,34] [,35] [,36] [1,] -1.0620601 -0.1030638 -1.2658878 [2,] 0.5020601 0.8130638 0.2758878 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" Warning message: In bxp(list(stats = c(-0.120000000000001, -0.0600000000000005, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6tgjq1243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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] [1,] 20.300 16.320 17.670 [2,] 21.950 18.100 17.920 [3,] 23.460 18.650 18.195 [4,] 26.185 20.485 18.495 [5,] 27.380 22.370 18.800 $n [1] 36 36 12 $conf [,1] [,2] [,3] [1,] 22.34478 18.02195 17.93274 [2,] 24.57522 19.27805 18.45726 $out numeric(0) $group numeric(0) $names [1] "1" "2" NA Warning message: In bxp(list(stats = c(20.3, 21.95, 23.46, 26.185, 27.38, 16.32, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/706xp1243855190.ps",horizontal=F,pagecentre=F,paper="special",width=11.111111111111,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,] 18.5850 18.5850 18.58500 [2,] 19.9275 19.9275 19.92750 [3,] 20.8975 20.7400 20.88375 [4,] 21.9800 21.8400 21.95000 [5,] 22.6800 22.6800 22.68000 $n [1] 36 36 36 $conf [,1] [,2] [,3] [1,] 20.35701 20.23638 20.35116 [2,] 21.43799 21.24363 21.41634 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1aczl1243855190.ps tmp/1aczl1243855190.png") > system("convert tmp/2ox121243855190.ps tmp/2ox121243855190.png") > system("convert tmp/36ak81243855190.ps tmp/36ak81243855190.png") > system("convert tmp/4fto31243855190.ps tmp/4fto31243855190.png") > system("convert tmp/5j7u71243855190.ps tmp/5j7u71243855190.png") > system("convert tmp/6tgjq1243855190.ps tmp/6tgjq1243855190.png") > system("convert tmp/706xp1243855190.ps tmp/706xp1243855190.png") > > > proc.time() user system elapsed 2.201 1.722 2.554