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(124.06,124.58,122.00,124.02,124.16,124.29,123.93,124.62,121.81,124.14,124.31,125.15,125.35,125.48,124.17,125.33,124.46,123.39,123.14,122.24,119.31,120.87,120.43,119.41,118.85,119.08,117.25,118.51,118.42,118.56,117.97,117.98,115.25,117.23,117.08,116.83,117.17,117.73,115.74,116.99,116.90,116.49,115.84,115.92,113.32,114.84,114.75,114.84,115.03,115.03,112.99,114.15,113.77,113.57,113.38,112.71,110.27,111.73,112.12,112.31,111.73,111.83,109.99,111.15,111.25,110.87,110.27,110.18,108.15,109.60,109.60,109.41,109.80,109.60,107.76,109.02,108.62,109.02,109.22,108.92,106.69,107.76,107.66,107.85,107.95,107.85,106.30,107.37,107.66,107.46,107.37,107.18,105.43,106.39,106.50,106.50,106.69,106.50,105.14,106.50,106.20,105.72,104.76,104.55,102.71,104.36,104.65,104.46,104.65,103.88,102.32,103.39,103.00,102.71,102.51,102.04,100.00) > 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] 117 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 10 10 10 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 124.06 125.35 118.85 117.17 115.03 111.73 109.80 107.95 106.69 104.65 [2,] 124.58 125.48 119.08 117.73 115.03 111.83 109.60 107.85 106.50 103.88 [3,] 122.00 124.17 117.25 115.74 112.99 109.99 107.76 106.30 105.14 102.32 [4,] 124.02 125.33 118.51 116.99 114.15 111.15 109.02 107.37 106.50 103.39 [5,] 124.16 124.46 118.42 116.90 113.77 111.25 108.62 107.66 106.20 103.00 [6,] 124.29 123.39 118.56 116.49 113.57 110.87 109.02 107.46 105.72 102.71 [7,] 123.93 123.14 117.97 115.84 113.38 110.27 109.22 107.37 104.76 102.51 [8,] 124.62 122.24 117.98 115.92 112.71 110.18 108.92 107.18 104.55 102.04 [9,] 121.81 119.31 115.25 113.32 110.27 108.15 106.69 105.43 102.71 100.00 [10,] 124.14 120.87 117.23 114.84 111.73 109.60 107.76 106.39 104.36 NA [11,] 124.31 120.43 117.08 114.75 112.12 109.60 107.66 106.50 104.65 NA [12,] 125.15 119.41 116.83 114.84 112.31 109.41 107.85 106.50 104.46 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0.52 0.13 0.23 0.56 0.00 0.10 -0.20 -0.10 -0.19 -0.77 [2,] -2.58 -1.31 -1.83 -1.99 -2.04 -1.84 -1.84 -1.55 -1.36 -1.56 [3,] 2.02 1.16 1.26 1.25 1.16 1.16 1.26 1.07 1.36 1.07 [4,] 0.14 -0.87 -0.09 -0.09 -0.38 0.10 -0.40 0.29 -0.30 -0.39 [5,] 0.13 -1.07 0.14 -0.41 -0.20 -0.38 0.40 -0.20 -0.48 -0.29 [6,] -0.36 -0.25 -0.59 -0.65 -0.19 -0.60 0.20 -0.09 -0.96 -0.20 [7,] 0.69 -0.90 0.01 0.08 -0.67 -0.09 -0.30 -0.19 -0.21 -0.47 [8,] -2.81 -2.93 -2.73 -2.60 -2.44 -2.03 -2.23 -1.75 -1.84 -2.04 [9,] 2.33 1.56 1.98 1.52 1.46 1.45 1.07 0.96 1.65 NA [10,] 0.17 -0.44 -0.15 -0.09 0.39 0.00 -0.10 0.11 0.29 NA [11,] 0.84 -1.02 -0.25 0.09 0.19 -0.19 0.19 0.00 -0.19 NA [12,] 0.20 -0.56 0.34 0.19 -0.58 0.39 0.10 0.19 0.19 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/1gyw61257769600.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/freestat/rcomp/tmp/2yxdd1257769600.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/freestat/rcomp/tmp/365i61257769600.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/freestat/rcomp/tmp/42xbn1257769600.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] [,10] [1,] 104.65 103.88 102.32 103.39 103.00 102.71 102.510 102.040 100.00 104.36 [2,] 107.95 107.85 106.30 107.37 107.66 107.46 107.370 107.180 105.43 107.76 [3,] 113.38 113.43 111.49 112.65 112.51 112.22 111.825 111.445 109.21 111.73 [4,] 118.85 119.08 117.25 118.51 118.42 118.56 117.970 117.980 115.25 117.23 [5,] 125.35 125.48 124.17 125.33 124.46 124.29 123.930 124.620 121.81 124.14 [,11] [,12] [1,] 104.65 104.46 [2,] 107.66 107.85 [3,] 112.12 112.31 [4,] 117.08 116.83 [5,] 124.31 125.15 $n [1] 10 10 10 10 10 10 10 10 10 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 107.9339 107.8190 106.0189 107.0840 107.1339 106.674 106.5288 106.0489 [2,] 118.8261 119.0410 116.9611 118.2160 117.8861 117.766 117.1212 116.8411 [,9] [,10] [,11] [,12] [1,] 104.3035 106.7425 107.1588 107.5805 [2,] 114.1165 116.7175 117.0812 117.0395 $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(104.65, 107.95, 113.38, 118.85, 125.35, 103.88, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5heln1257769600.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] [,11] [1,] -0.77 -2.580 1.070 -0.870 -1.070 -0.960 -0.90 -2.930 1.45 -0.44 -0.25 [2,] -0.19 -1.990 1.160 -0.390 -0.410 -0.600 -0.47 -2.730 1.45 -0.10 -0.19 [3,] 0.05 -1.835 1.205 -0.195 -0.245 -0.305 -0.20 -2.335 1.52 0.00 0.00 [4,] 0.23 -1.550 1.260 0.100 0.130 -0.190 0.01 -2.030 1.65 0.17 0.19 [5,] 0.56 -1.310 1.360 0.290 0.400 0.200 0.69 -1.750 1.65 0.39 0.19 [,12] [1,] 0.10 [2,] 0.10 [3,] 0.19 [4,] 0.20 [5,] 0.34 $n [1] 10 10 10 10 10 10 10 10 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1598487 -2.054842 1.155036 -0.43982354 -0.51480553 -0.5098523 [2,] 0.2598487 -1.615158 1.254964 0.04982354 0.02480553 -0.1001477 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.43982714 -2.684748 1.414667 -0.1422 -0.2001333 0.1373333 [2,] 0.03982714 -1.985252 1.625333 0.1422 0.2001333 0.2426667 $out [1] 2.02 2.33 1.98 1.07 0.96 0.84 -1.02 -0.56 -0.58 0.39 $group [1] 3 9 9 9 9 11 11 12 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.77000000000001, -0.189999999999998, 0.0499999999999972, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6x4gm1257769601.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,] 123.930 119.310 115.250 113.320 110.270 108.150 106.69 105.430 102.710 [2,] 123.975 120.650 117.155 114.840 112.215 109.600 107.76 106.445 104.505 [3,] 124.150 123.265 117.975 115.880 113.185 110.225 108.77 107.275 104.950 [4,] 124.445 124.895 118.535 116.945 113.960 111.200 109.12 107.560 106.350 [5,] 124.620 125.480 119.080 117.730 115.030 111.830 109.80 107.950 106.690 [,10] [1,] 102.04 [2,] 102.32 [3,] 102.71 [4,] 103.39 [5,] 104.65 $n [1] 12 12 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 123.9356 121.3288 117.3456 114.9199 112.3891 109.4952 108.1497 106.7664 [2,] 124.3644 125.2012 118.6044 116.8401 113.9809 110.9548 109.3903 107.7836 [,9] [,10] [1,] 104.1085 102.1465 [2,] 105.7915 103.2735 $out [1] 122.00 121.81 125.15 100.00 $group [1] 1 1 1 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(123.93, 123.975, 124.15, 124.445, 124.62, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7q6gx1257769601.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,] 112.3660 111.445 111.7687 [2,] 112.7365 111.610 112.3550 [3,] 113.0011 112.170 112.5875 [4,] 113.5435 112.580 112.9631 [5,] 114.1560 113.430 113.5150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 112.6330 111.7276 112.3101 [2,] 113.3692 112.6124 112.8649 $out [1] 110.2940 109.2100 110.2562 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(112.366, 112.7365, 113.001111111111, 113.5435, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gyw61257769600.ps tmp/1gyw61257769600.png") > system("convert tmp/2yxdd1257769600.ps tmp/2yxdd1257769600.png") > system("convert tmp/365i61257769600.ps tmp/365i61257769600.png") > system("convert tmp/42xbn1257769600.ps tmp/42xbn1257769600.png") > system("convert tmp/5heln1257769600.ps tmp/5heln1257769600.png") > system("convert tmp/6x4gm1257769601.ps tmp/6x4gm1257769601.png") > system("convert tmp/7q6gx1257769601.ps tmp/7q6gx1257769601.png") > > > proc.time() user system elapsed 1.856 1.449 2.149