R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(98.84,99.505,100.17,100.83,101.51,102.16,102.39,102.54,102.85,103.47,103.57,103.69,103.5,103.47,103.45,103.48,103.93,103.89,104.4,104.79,104.77,105.13,105.26,104.96,104.75,105.01,105.15,105.2,105.77,105.78,106.26,106.13,106.12,106.57,106.44,106.54,107.1,108.1,108.4,108.84,109.62,110.42,110.67,111.66,112.28,112.87,112.18,112.36,112.16,111.49,111.25,111.36,111.74,111.1,111.33,111.25,111.04,110.97,111.31,111.02) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 98.840 103.50 104.75 107.10 112.16 NA [2,] 99.505 103.47 105.01 108.10 111.49 NA [3,] 100.170 103.45 105.15 108.40 111.25 NA [4,] 100.830 103.48 105.20 108.84 111.36 NA [5,] 101.510 103.93 105.77 109.62 111.74 NA [6,] 102.160 103.89 105.78 110.42 111.10 NA [7,] 102.390 104.40 106.26 110.67 111.33 NA [8,] 102.540 104.79 106.13 111.66 111.25 NA [9,] 102.850 104.77 106.12 112.28 111.04 NA [10,] 103.470 105.13 106.57 112.87 110.97 NA [11,] 103.570 105.26 106.44 112.18 111.31 NA [12,] 103.690 104.96 106.54 112.36 111.02 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.665 -0.03 0.26 1.00 -0.67 NA [2,] 0.665 -0.02 0.14 0.30 -0.24 NA [3,] 0.660 0.03 0.05 0.44 0.11 NA [4,] 0.680 0.45 0.57 0.78 0.38 NA [5,] 0.650 -0.04 0.01 0.80 -0.64 NA [6,] 0.230 0.51 0.48 0.25 0.23 NA [7,] 0.150 0.39 -0.13 0.99 -0.08 NA [8,] 0.310 -0.02 -0.01 0.62 -0.21 NA [9,] 0.620 0.36 0.45 0.59 -0.07 NA [10,] 0.100 0.13 -0.13 -0.69 0.34 NA [11,] 0.120 -0.30 0.10 0.18 -0.29 NA [12,] -0.190 -0.21 0.56 -0.20 NA 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/1r3kn1258124391.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/2ky781258124391.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/344p71258124391.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/48f461258124391.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,] 98.84 99.505 100.17 100.83 101.51 102.16 102.39 102.54 102.85 103.47 [2,] 103.50 103.470 103.45 103.48 103.93 103.89 104.40 104.79 104.77 105.13 [3,] 104.75 105.010 105.15 105.20 105.77 105.78 106.26 106.13 106.12 106.57 [4,] 107.10 108.100 108.40 108.84 109.62 110.42 110.67 111.25 111.04 110.97 [5,] 112.16 111.490 111.25 111.36 111.74 111.10 111.33 111.66 112.28 112.87 [,11] [,12] [1,] 103.57 103.69 [2,] 105.26 104.96 [3,] 106.44 106.54 [4,] 111.31 111.02 [5,] 112.18 112.36 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 102.2062 101.7385 101.6523 101.4126 101.7495 101.1659 101.8296 101.5654 [2,] 107.2938 108.2815 108.6477 108.9874 109.7905 110.3941 110.6904 110.6946 [,9] [,10] [,11] [,12] [1,] 101.6896 102.4435 102.1651 102.2580 [2,] 110.5504 110.6965 110.7149 110.8220 $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.84, 103.5, 104.75, 107.1, 112.16, 99.505, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5np6z1258124391.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] [,12] [1,] -0.670 -0.240 0.03 0.38 -0.64 0.23 -0.13 -0.21 0.36 -0.13 -0.30 -0.210 [2,] -0.030 -0.020 0.05 0.45 -0.04 0.23 -0.08 -0.02 0.36 -0.13 -0.29 -0.205 [3,] 0.260 0.140 0.11 0.57 0.01 0.25 0.15 -0.01 0.45 0.10 0.10 -0.195 [4,] 0.665 0.300 0.44 0.68 0.65 0.48 0.39 0.31 0.59 0.13 0.12 0.185 [5,] 1.000 0.665 0.66 0.78 0.80 0.51 0.99 0.62 0.62 0.34 0.18 0.560 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2310852 -0.0861112 -0.1655730 0.4074826 -0.4775523 0.07335063 [2,] 0.7510852 0.3661112 0.3855730 0.7325174 0.4975523 0.42664937 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1821008 -0.2431772 0.2874826 -0.08371535 -0.1897050 -0.5031 [2,] 0.4821008 0.2231772 0.6125174 0.28371535 0.3897050 0.1131 $out [1] -0.07 -0.69 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.670000000000002, -0.0300000000000011, 0.260000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mm4g1258124391.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] [1,] 98.840 103.450 104.750 107.100 110.970 NA [2,] 100.500 103.490 105.175 108.620 111.070 NA [3,] 102.275 104.165 105.950 110.545 111.280 NA [4,] 103.160 104.875 106.350 112.230 111.425 NA [5,] 103.690 105.260 106.570 112.870 111.740 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 101.0618 103.5333 105.4141 108.8985 111.1181 NA [2,] 103.4882 104.7967 106.4859 112.1915 111.4419 NA $out [1] 112.16 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(98.84, 100.5, 102.275, 103.16, 103.69, 103.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7is6m1258124391.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,] 105.270 104.750 105.3000 [2,] 105.813 105.175 106.0425 [3,] 106.840 105.950 107.3450 [4,] 107.563 106.350 108.0050 [5,] 107.802 106.570 108.2850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 106.0418 105.4141 106.4499 [2,] 107.6382 106.4859 108.2401 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(105.27, 105.813, 106.84, 107.563, 107.802, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1r3kn1258124391.ps tmp/1r3kn1258124391.png") > system("convert tmp/2ky781258124391.ps tmp/2ky781258124391.png") > system("convert tmp/344p71258124391.ps tmp/344p71258124391.png") > system("convert tmp/48f461258124391.ps tmp/48f461258124391.png") > system("convert tmp/5np6z1258124391.ps tmp/5np6z1258124391.png") > system("convert tmp/6mm4g1258124391.ps tmp/6mm4g1258124391.png") > system("convert tmp/7is6m1258124391.ps tmp/7is6m1258124391.png") > > > proc.time() user system elapsed 1.211 0.943 1.568