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.37,100.26,100.37,100.18,99.78,99.64,100.01,100.67,100.50,100.28,100.24,99.49,99.36,99.68,100.42,100.75,100.87,101.04,101.36,101.57,101.93,102.37,103.10,103.22,102.96,102.77,102.38,103.10,103.90,104.12,103.75,104.37,103.94,103.78,104.15,104.01,103.33,103.05,103.08,102.86,103.08,102.50,102.20,102.14,102.28,102.43,102.82,103.22,102.95,103.14,103.45,103.68,103.98,104.49,104.39,104.76,105.51,105.77,106.18,106.44,106.74,106.51,106.97,107.15,106.93,106.73,106.78,106.75,106.96,106.80,106.51,105.97,105.95,106.45,106.63,106.99,107.09,107.57,107.46,107.82,107.66,107.50,107.89,108.24,108.57,109.22,109.40,109.10,108.72) > 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 99.49 103.22 104.01 103.22 106.44 105.97 108.24 [2,] 100.37 99.36 102.96 103.33 102.95 106.74 105.95 108.57 [3,] 100.26 99.68 102.77 103.05 103.14 106.51 106.45 109.22 [4,] 100.37 100.42 102.38 103.08 103.45 106.97 106.63 109.40 [5,] 100.18 100.75 103.10 102.86 103.68 107.15 106.99 109.10 [6,] 99.78 100.87 103.90 103.08 103.98 106.93 107.09 108.72 [7,] 99.64 101.04 104.12 102.50 104.49 106.73 107.57 NA [8,] 100.01 101.36 103.75 102.20 104.39 106.78 107.46 NA [9,] 100.67 101.57 104.37 102.14 104.76 106.75 107.82 NA [10,] 100.50 101.93 103.94 102.28 105.51 106.96 107.66 NA [11,] 100.28 102.37 103.78 102.43 105.77 106.80 107.50 NA [12,] 100.24 103.10 104.15 102.82 106.18 106.51 107.89 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.37 -0.13 -0.26 -0.68 -0.27 0.30 -0.02 0.33 [2,] -0.11 0.32 -0.19 -0.28 0.19 -0.23 0.50 0.65 [3,] 0.11 0.74 -0.39 0.03 0.31 0.46 0.18 0.18 [4,] -0.19 0.33 0.72 -0.22 0.23 0.18 0.36 -0.30 [5,] -0.40 0.12 0.80 0.22 0.30 -0.22 0.10 -0.38 [6,] -0.14 0.17 0.22 -0.58 0.51 -0.20 0.48 NA [7,] 0.37 0.32 -0.37 -0.30 -0.10 0.05 -0.11 NA [8,] 0.66 0.21 0.62 -0.06 0.37 -0.03 0.36 NA [9,] -0.17 0.36 -0.43 0.14 0.75 0.21 -0.16 NA [10,] -0.22 0.44 -0.16 0.15 0.26 -0.16 -0.16 NA [11,] -0.04 0.73 0.37 0.39 0.41 -0.29 0.39 NA [12,] -0.75 0.12 -0.14 0.40 0.26 -0.54 0.35 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/1kv9f1225379110.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/21tg11225379110.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/3tg531225379110.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/4pwd71225379110.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,] 99.490 99.360 99.680 100.370 100.180 99.780 99.64 100.010 100.670 [2,] 101.610 101.660 101.515 101.400 101.805 101.975 101.77 101.780 101.855 [3,] 103.615 103.145 103.095 103.265 103.390 103.940 104.12 103.750 104.370 [4,] 106.205 106.345 106.480 106.800 107.070 107.010 105.61 105.585 105.755 [5,] 108.240 108.570 109.220 109.400 109.100 108.720 107.57 107.460 107.820 [,10] [,11] [,12] [1,] 100.500 100.280 100.240 [2,] 102.105 102.400 102.960 [3,] 103.940 103.780 104.150 [4,] 106.235 106.285 106.345 [5,] 107.660 107.500 107.890 $n [1] 8 8 8 8 8 8 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 101.0482 100.5279 100.3215 100.2485 100.4489 101.1274 101.8268 101.4777 [2,] 106.1818 105.7621 105.8685 106.2815 106.3311 106.7526 106.4132 106.0223 [,9] [,10] [,11] [,12] [1,] 102.0410 101.4736 101.4599 102.1285 [2,] 106.6990 106.4064 106.1001 106.1715 $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(99.49, 101.61, 103.615, 106.205, 108.24, 99.36, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5g2dy1225379110.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.680 -0.28 -0.390 -0.300 -0.40 -0.58 -0.370 -0.060 -0.430 -0.220 -0.040 [2,] -0.265 -0.21 0.070 -0.205 -0.30 -0.17 -0.205 0.090 -0.165 -0.160 0.165 [3,] -0.075 0.04 0.180 0.205 0.11 0.17 -0.100 0.360 0.140 -0.160 0.390 [4,] 0.315 0.41 0.385 0.345 0.26 0.35 0.185 0.495 0.285 0.205 0.400 [5,] 0.370 0.65 0.740 0.720 0.80 0.51 0.370 0.660 0.750 0.440 0.730 [,12] [1,] -0.750 [2,] -0.340 [3,] 0.120 [4,] 0.305 [5,] 0.400 $n [1] 8 8 8 8 8 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.3989963 -0.3063409 0.004036478 -0.1022379 -0.2028240 -0.1405356 [2,] 0.2489963 0.3863409 0.355963522 0.5122379 0.4228240 0.4805356 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.3329017 0.1181405 -0.1287327 -0.37797211 0.2496618 -0.2651836 [2,] 0.1329017 0.6018595 0.4087327 0.05797211 0.5303382 0.5051836 $out [1] -0.29 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.680000000000007, -0.265000000000001, -0.0749999999999957, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6iyat1225379110.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.640 99.360 102.380 102.140 102.950 106.440 105.950 108.24 [2,] 100.005 100.050 103.030 102.355 103.335 106.620 106.540 108.57 [3,] 100.250 100.955 103.765 102.840 104.185 106.765 107.275 108.91 [4,] 100.370 101.750 104.030 103.080 105.135 106.945 107.615 109.22 [5,] 100.670 103.100 104.370 104.010 106.180 107.150 107.890 109.40 $n [1] 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.0835 100.1796 103.3089 102.5093 103.364 106.6168 106.7847 108.4907 [2,] 100.4165 101.7304 104.2211 103.1707 105.006 106.9132 107.7653 109.3293 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(99.64, 100.005, 100.25, 100.37, 100.67, 99.36, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7jp1n1225379110.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.7071 103.0950 103.6825 [2,] 103.8013 103.3275 103.9875 [3,] 104.0495 103.7650 104.2769 [4,] 104.1796 104.0300 104.4975 [5,] 104.4129 104.3700 104.7488 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.8769 103.4446 104.0443 [2,] 104.2220 104.0854 104.5095 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.707142857143, 103.80125, 104.049464285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1kv9f1225379110.ps tmp/1kv9f1225379110.png") > system("convert tmp/21tg11225379110.ps tmp/21tg11225379110.png") > system("convert tmp/3tg531225379110.ps tmp/3tg531225379110.png") > system("convert tmp/4pwd71225379110.ps tmp/4pwd71225379110.png") > system("convert tmp/5g2dy1225379110.ps tmp/5g2dy1225379110.png") > system("convert tmp/6iyat1225379110.ps tmp/6iyat1225379110.png") > system("convert tmp/7jp1n1225379110.ps tmp/7jp1n1225379110.png") > > > proc.time() user system elapsed 1.444 0.983 2.301