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(1946.81,1765.9,1635.25,1833.42,1910.43,1959.67,1969.6,2061.41,2093.48,2120.88,2174.56,2196.72,2350.44,2440.25,2408.64,2472.81,2407.6,2454.62,2448.05,2497.84,2645.64,2756.76,2849.27,2921.44,3080.58,3106.22,3119.31,3061.26,3097.31,3161.69,3257.16,3277.01,3295.32,3363.99,3494.17,3667.03,3813.06,3917.96,3895.51,3733.22,3801.06,3570.12,3701.61,3862.27,3970.1,4138.52,4199.75,4290.89,4443.91,4502.64,4356.98,4591.27,4696.96,4621.4,4562.84,4202.52,4296.49,4435.23,4105.18,4116.68) > 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,] 1946.81 2350.44 3080.58 3813.06 4443.91 NA [2,] 1765.90 2440.25 3106.22 3917.96 4502.64 NA [3,] 1635.25 2408.64 3119.31 3895.51 4356.98 NA [4,] 1833.42 2472.81 3061.26 3733.22 4591.27 NA [5,] 1910.43 2407.60 3097.31 3801.06 4696.96 NA [6,] 1959.67 2454.62 3161.69 3570.12 4621.40 NA [7,] 1969.60 2448.05 3257.16 3701.61 4562.84 NA [8,] 2061.41 2497.84 3277.01 3862.27 4202.52 NA [9,] 2093.48 2645.64 3295.32 3970.10 4296.49 NA [10,] 2120.88 2756.76 3363.99 4138.52 4435.23 NA [11,] 2174.56 2849.27 3494.17 4199.75 4105.18 NA [12,] 2196.72 2921.44 3667.03 4290.89 4116.68 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -180.91 89.81 25.64 104.90 58.73 NA [2,] -130.65 -31.61 13.09 -22.45 -145.66 NA [3,] 198.17 64.17 -58.05 -162.29 234.29 NA [4,] 77.01 -65.21 36.05 67.84 105.69 NA [5,] 49.24 47.02 64.38 -230.94 -75.56 NA [6,] 9.93 -6.57 95.47 131.49 -58.56 NA [7,] 91.81 49.79 19.85 160.66 -360.32 NA [8,] 32.07 147.80 18.31 107.83 93.97 NA [9,] 27.40 111.12 68.67 168.42 138.74 NA [10,] 53.68 92.51 130.18 61.23 -330.05 NA [11,] 22.16 72.17 172.86 91.14 11.50 NA [12,] 153.72 159.14 146.03 153.02 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/1chpp1225623692.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/22ldh1225623692.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/37d9r1225623692.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/4oc3e1225623692.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,] 1946.81 1765.90 1635.25 1833.42 1910.43 1959.67 1969.60 2061.41 2093.48 [2,] 2350.44 2440.25 2408.64 2472.81 2407.60 2454.62 2448.05 2497.84 2645.64 [3,] 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 3277.01 3295.32 [4,] 3813.06 3917.96 3895.51 3733.22 3801.06 3570.12 3701.61 3862.27 3970.10 [5,] 4443.91 4502.64 4356.98 4591.27 4696.96 4621.40 4562.84 4202.52 4296.49 [,10] [,11] [,12] [1,] 2120.88 2174.56 2196.72 [2,] 2756.76 2849.27 2921.44 [3,] 3363.99 3494.17 3667.03 [4,] 4138.52 4105.18 4116.68 [5,] 4435.23 4199.75 4290.89 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2047.096 2062.074 2068.691 2170.657 2112.695 2373.481 2371.398 2312.907 [2,] 4114.064 4150.366 4169.929 3951.863 4081.925 3949.899 4142.922 4241.113 [,9] [,10] [,11] [,12] [1,] 2359.46 2387.642 2606.747 2822.476 [2,] 4231.18 4340.338 4381.593 4511.584 $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(1946.81, 2350.44, 3080.58, 3813.06, 4443.91, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5oa261225623693.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,] 25.64 -145.66 -162.29 36.05 -230.94 -58.56 19.85 18.31 27.40 53.68 [2,] 25.64 -130.65 -58.05 36.05 -75.56 -6.57 19.85 32.07 68.67 53.68 [3,] 58.73 -31.61 64.17 67.84 47.02 9.93 49.79 93.97 111.12 61.23 [4,] 89.81 -22.45 198.17 77.01 49.24 95.47 91.81 107.83 138.74 92.51 [5,] 104.90 13.09 234.29 105.69 64.38 131.49 160.66 147.80 168.42 130.18 [,11] [,12] [1,] 11.50 146.030 [2,] 22.16 149.525 [3,] 72.17 153.370 [4,] 91.14 156.430 [5,] 172.86 159.140 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 13.38764 -108.06385 -116.8744 38.89777 -41.16337 -62.17121 -1.056755 [2,] 104.07236 44.84385 245.2144 96.78223 135.20337 82.03121 100.636755 [,8] [,9] [,10] [,11] [,12] [1,] 40.43817 61.60871 33.79282 23.42891 147.9150 [2,] 147.50183 160.63129 88.66718 120.91109 158.8250 $out [1] -180.91 -65.21 -360.32 -330.05 $group [1] 1 4 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(25.6399999999999, 25.6399999999999, 58.7300000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yga61225623693.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,] 1635.250 2350.440 3061.260 3570.12 4105.180 NA [2,] 1871.925 2424.445 3101.765 3767.14 4249.505 NA [3,] 1964.635 2463.715 3209.425 3878.89 4439.570 NA [4,] 2107.180 2701.200 3329.655 4054.31 4577.055 NA [5,] 2196.720 2921.440 3667.030 4290.89 4696.960 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1857.334 2337.485 3105.483 3747.91 4290.172 NA [2,] 2071.936 2589.945 3313.367 4009.87 4588.968 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1635.25, 1871.925, 1964.635, 2107.18, 2196.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72h0c1225623693.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,] 3083.138 3061.260 3012.370 [2,] 3142.495 3101.765 3092.382 [3,] 3181.441 3209.425 3165.590 [4,] 3311.641 3329.655 3377.755 [5,] 3438.552 3667.030 3519.060 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3104.292 3105.483 3035.430 [2,] 3258.590 3313.367 3295.750 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3083.138, 3142.495, 3181.441, 3311.641, 3438.552, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1chpp1225623692.ps tmp/1chpp1225623692.png") > system("convert tmp/22ldh1225623692.ps tmp/22ldh1225623692.png") > system("convert tmp/37d9r1225623692.ps tmp/37d9r1225623692.png") > system("convert tmp/4oc3e1225623692.ps tmp/4oc3e1225623692.png") > system("convert tmp/5oa261225623693.ps tmp/5oa261225623693.png") > system("convert tmp/6yga61225623693.ps tmp/6yga61225623693.png") > system("convert tmp/72h0c1225623693.ps tmp/72h0c1225623693.png") > > > proc.time() user system elapsed 1.426 0.962 1.705