R version 2.7.0 (2008-04-22) 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.39,100.15,100.21,100.03,99.58,99.40,99.77,100.41,100.12,99.83,99.73,98.74,98.44,98.79,99.60,99.82,99.85,100.01,100.28,100.63,101.14,101.51,102.41,102.46,102.09,101.99,101.52,102.44,103.42,103.63,103.28,103.98,103.56,103.42,103.92,103.81,103.09,102.60,102.77,102.60,102.88,102.17,101.85,101.66,101.91,102.13,102.71,103.17,102.89,102.94,103.33,103.75,104.11,104.77,104.62,105.00,105.74,105.94,106.37,106.65,107.08,106.77,107.21,107.34,107.12,106.86,106.92,106.95,107.23,106.94,106.62,105.94,105.91,106.52,106.85,107.22,107.28,107.86,107.68,108.07,107.87,107.65,108.16,108.60,108.92,109.66,109.87,109.54,109.06) > 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 98.74 102.46 103.81 103.17 106.65 105.94 108.60 [2,] 100.39 98.44 102.09 103.09 102.89 107.08 105.91 108.92 [3,] 100.15 98.79 101.99 102.60 102.94 106.77 106.52 109.66 [4,] 100.21 99.60 101.52 102.77 103.33 107.21 106.85 109.87 [5,] 100.03 99.82 102.44 102.60 103.75 107.34 107.22 109.54 [6,] 99.58 99.85 103.42 102.88 104.11 107.12 107.28 109.06 [7,] 99.40 100.01 103.63 102.17 104.77 106.86 107.86 NA [8,] 99.77 100.28 103.28 101.85 104.62 106.92 107.68 NA [9,] 100.41 100.63 103.98 101.66 105.00 106.95 108.07 NA [10,] 100.12 101.14 103.56 101.91 105.74 107.23 107.87 NA [11,] 99.83 101.51 103.42 102.13 105.94 106.94 107.65 NA [12,] 99.73 102.41 103.92 102.71 106.37 106.62 108.16 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.39 -0.30 -0.37 -0.72 -0.28 0.43 -0.03 0.32 [2,] -0.24 0.35 -0.10 -0.49 0.05 -0.31 0.61 0.74 [3,] 0.06 0.81 -0.47 0.17 0.39 0.44 0.33 0.21 [4,] -0.18 0.22 0.92 -0.17 0.42 0.13 0.37 -0.33 [5,] -0.45 0.03 0.98 0.28 0.36 -0.22 0.06 -0.48 [6,] -0.18 0.16 0.21 -0.71 0.66 -0.26 0.58 NA [7,] 0.37 0.27 -0.35 -0.32 -0.15 0.06 -0.18 NA [8,] 0.64 0.35 0.70 -0.19 0.38 0.03 0.39 NA [9,] -0.29 0.51 -0.42 0.25 0.74 0.28 -0.20 NA [10,] -0.29 0.37 -0.14 0.22 0.20 -0.29 -0.22 NA [11,] -0.10 0.90 0.50 0.58 0.43 -0.32 0.51 NA [12,] -0.99 0.05 -0.11 0.46 0.28 -0.68 0.44 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/1term1225464689.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/2e2zk1225464689.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/3pgib1225464689.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/4nb8v1225464689.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,] 98.740 98.440 98.790 99.600 99.820 99.580 99.400 99.770 100.410 [2,] 101.230 101.240 101.070 100.865 101.235 101.365 101.090 101.065 101.145 [3,] 103.490 102.990 102.770 103.050 103.175 103.765 103.630 103.280 103.980 [4,] 106.295 106.495 106.645 107.030 107.280 107.200 105.815 105.770 105.975 [5,] 108.600 108.920 109.660 109.870 109.540 109.060 107.860 107.680 108.070 [,10] [,11] [,12] [1,] 100.120 99.83 99.730 [2,] 101.525 101.82 102.560 [3,] 103.560 103.42 103.920 [4,] 106.485 106.44 106.495 [5,] 107.870 107.65 108.160 $n [1] 8 8 8 8 8 8 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.6606 100.0545 99.65572 99.60614 99.79818 100.5055 100.8083 100.4702 [2,] 106.3194 105.9255 105.88428 106.49386 106.55182 107.0245 106.4517 106.0898 [,9] [,10] [,11] [,12] [1,] 101.0956 100.5980 100.6610 101.5701 [2,] 106.8644 106.5220 106.1790 106.2699 $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(98.74, 101.23, 103.49, 106.295, 108.6, 98.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5mp071225464689.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.720 -0.490 0.060 -0.330 -0.480 -0.710 -0.350 -0.190 -0.420 -0.290 [2,] -0.335 -0.275 0.115 -0.175 -0.335 -0.220 -0.250 0.190 -0.245 -0.255 [3,] -0.155 -0.025 0.270 0.175 0.045 0.160 -0.150 0.380 0.250 -0.140 [4,] 0.355 0.480 0.415 0.395 0.320 0.395 0.165 0.515 0.395 0.210 [5,] 0.430 0.740 0.810 0.920 0.980 0.660 0.370 0.700 0.740 0.370 [,11] [,12] [1,] -0.320 -0.990 [2,] 0.165 -0.395 [3,] 0.500 0.050 [4,] 0.545 0.360 [5,] 0.900 0.460 $n [1] 8 8 8 8 8 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.5404439 -0.4467538 0.1024157 -0.1434102 -0.3208924 -0.2072681 [2,] 0.2304439 0.3967538 0.4375843 0.4934102 0.4108924 0.5272681 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.3978313 0.1859152 -0.1321977 -0.4176905 0.2730701 -0.4008738 [2,] 0.0978313 0.5740848 0.6321977 0.1376905 0.7269299 0.5008738 $out [1] -0.47 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.719999999999999, -0.334999999999994, -0.155000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6habc1225464689.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,] 99.400 98.440 101.520 101.660 102.890 106.620 105.910 108.60 [2,] 99.750 99.195 102.265 102.020 103.250 106.815 106.685 108.92 [3,] 100.015 99.930 103.350 102.600 104.365 106.945 107.465 109.30 [4,] 100.180 100.885 103.595 102.825 105.370 107.165 107.865 109.66 [5,] 100.410 102.410 103.980 103.810 106.370 107.340 108.160 109.87 $n [1] 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.81887 99.15918 102.7434 102.2328 103.3981 106.7854 106.9268 108.8227 [2,] 100.21113 100.70082 103.9566 102.9672 105.3319 107.1046 108.0032 109.7773 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(99.4, 99.75, 100.015, 100.18, 100.41, 98.44, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7kegi1225464689.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,] 103.4857 102.7700 103.4175 [2,] 103.6362 103.1125 103.7469 [3,] 103.8657 103.4550 104.0306 [4,] 104.0155 103.6975 104.3287 [5,] 104.2743 103.9800 104.6412 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.6927 103.1882 103.7652 [2,] 104.0387 103.7218 104.2960 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.485714285714, 103.63625, 103.865714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1term1225464689.ps tmp/1term1225464689.png") > system("convert tmp/2e2zk1225464689.ps tmp/2e2zk1225464689.png") > system("convert tmp/3pgib1225464689.ps tmp/3pgib1225464689.png") > system("convert tmp/4nb8v1225464689.ps tmp/4nb8v1225464689.png") > system("convert tmp/5mp071225464689.ps tmp/5mp071225464689.png") > system("convert tmp/6habc1225464689.ps tmp/6habc1225464689.png") > system("convert tmp/7kegi1225464689.ps tmp/7kegi1225464689.png") > > > proc.time() user system elapsed 2.626 1.637 2.860