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(2502.66,2466.92,2513.17,2443.27,2293.41,2070.83,2029.6,2052.02,1864.44,1670.07,1810.99,1905.41,1862.83,2014.45,2197.82,2962.34,3047.03,3032.6,3504.37,3801.06,3857.62,3674.4,3720.98,3844.49,4116.68,4105.18,4435.23,4296.49,4202.52,4562.84,4621.4,4696.96,4591.27,4356.98,4502.64,4443.91,4290.89,4199.75,4138.52,3970.1,3862.27,3701.61,3570.12,3801.06,3895.51,3917.96,3813.06,3667.03,3494.17,3363.99,3295.32,3277.01,3257.16,3161.69,3097.31,3061.26,3119.31,3106.22,3080.58,2981.85,2921.44,2849.27,2756.76,2645.64,2497.84,2448.05,2454.62,2407.6,2472.81,2408.64,2440.25,2350.44) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2502.66 1862.83 4116.68 4290.89 3494.17 2921.44 NA [2,] 2466.92 2014.45 4105.18 4199.75 3363.99 2849.27 NA [3,] 2513.17 2197.82 4435.23 4138.52 3295.32 2756.76 NA [4,] 2443.27 2962.34 4296.49 3970.10 3277.01 2645.64 NA [5,] 2293.41 3047.03 4202.52 3862.27 3257.16 2497.84 NA [6,] 2070.83 3032.60 4562.84 3701.61 3161.69 2448.05 NA [7,] 2029.60 3504.37 4621.40 3570.12 3097.31 2454.62 NA [8,] 2052.02 3801.06 4696.96 3801.06 3061.26 2407.60 NA [9,] 1864.44 3857.62 4591.27 3895.51 3119.31 2472.81 NA [10,] 1670.07 3674.40 4356.98 3917.96 3106.22 2408.64 NA [11,] 1810.99 3720.98 4502.64 3813.06 3080.58 2440.25 NA [12,] 1905.41 3844.49 4443.91 3667.03 2981.85 2350.44 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -35.74 151.62 -11.50 -91.14 -130.18 -72.17 NA [2,] 46.25 183.37 330.05 -61.23 -68.67 -92.51 NA [3,] -69.90 764.52 -138.74 -168.42 -18.31 -111.12 NA [4,] -149.86 84.69 -93.97 -107.83 -19.85 -147.80 NA [5,] -222.58 -14.43 360.32 -160.66 -95.47 -49.79 NA [6,] -41.23 471.77 58.56 -131.49 -64.38 6.57 NA [7,] 22.42 296.69 75.56 230.94 -36.05 -47.02 NA [8,] -187.58 56.56 -105.69 94.45 58.05 65.21 NA [9,] -194.37 -183.22 -234.29 22.45 -13.09 -64.17 NA [10,] 140.92 46.58 145.66 -104.90 -25.64 31.61 NA [11,] 94.42 123.51 -58.73 -146.03 -98.73 -89.81 NA [12,] -42.58 272.19 -153.02 -172.86 -60.41 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/1qujs1291295589.ps",horizontal=F,onefile=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/2qujs1291295589.ps",horizontal=F,onefile=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/3qujs1291295589.ps",horizontal=F,onefile=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/4jmid1291295589.ps",horizontal=F,onefile=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] [1,] 1862.830 2014.45 2197.82 2443.270 2293.410 2070.830 2029.60 2052.02 [2,] 2502.660 2466.92 2513.17 2645.640 2497.840 2448.050 2454.62 2407.60 [3,] 3207.805 3106.63 3026.04 3119.675 3152.095 3097.145 3300.84 3431.16 [4,] 4116.680 4105.18 4138.52 3970.100 3862.270 3701.610 3570.12 3801.06 [5,] 4290.890 4199.75 4435.23 4296.490 4202.520 4562.840 4621.40 4696.96 [,9] [,10] [,11] [,12] [1,] 1864.440 1670.07 1810.99 1905.41 [2,] 2472.810 2408.64 2440.25 2350.44 [3,] 3488.465 3390.31 3400.78 3324.44 [4,] 3895.510 3917.96 3813.06 3844.49 [5,] 4591.270 4356.98 4502.64 4443.91 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2166.71 2049.899 1977.637 2265.356 2271.994 2288.558 2581.306 2532.333 [2,] 4248.90 4163.361 4074.443 3973.994 4032.196 3905.732 4020.374 4329.987 [,9] [,10] [,11] [,12] [1,] 2570.778 2416.75 2515.273 2360.729 [2,] 4406.152 4363.87 4286.287 4288.151 $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(1862.83, 2502.66, 3207.805, 4116.68, 4290.89, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jmid1291295589.ps",horizontal=F,onefile=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] [1,] -130.180 -92.51 -168.42 -149.86 -222.58 -131.49 -47.02 -187.580 -234.290 [2,] -91.140 -68.67 -138.74 -147.80 -160.66 -64.38 -36.05 -105.690 -194.370 [3,] -53.955 -7.49 -90.51 -100.90 -72.63 -17.33 48.99 57.305 -123.695 [4,] -11.500 183.37 -18.31 -19.85 -14.43 58.56 230.94 65.210 -13.090 [5,] -11.500 330.05 -18.31 84.69 -14.43 58.56 296.69 94.450 22.450 [,10] [,11] [,12] [1,] -104.900 -146.03 -172.86 [2,] -25.640 -98.73 -153.02 [3,] 39.095 -74.27 -60.41 [4,] 140.920 94.42 -42.58 [5,] 145.660 123.51 -42.58 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -105.325372 -170.0639 -168.19124 -183.43188 -166.95307 -96.63027 -123.2272 [2,] -2.584628 155.0839 -12.82876 -18.36812 21.69307 61.97027 221.2072 [,8] [,9] [,10] [,11] [,12] [1,] -52.93102 -240.626455 -68.34158 -198.85799 -138.44663 [2,] 167.54102 -6.763545 146.53158 50.31799 17.62663 $out [1] 151.62 764.52 360.32 471.77 272.19 $group [1] 1 3 5 6 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-130.180000000000, -91.1400000000003, -53.9549999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6tdig1291295589.ps",horizontal=F,onefile=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] [1,] 1670.070 1862.83 4105.180 3570.120 2981.850 2350.440 NA [2,] 1884.925 2580.08 4249.505 3751.335 3088.945 2424.445 NA [3,] 2061.425 3275.70 4439.570 3878.890 3140.500 2463.715 NA [4,] 2455.095 3761.02 4577.055 4054.310 3286.165 2701.200 NA [5,] 2513.170 3857.62 4696.960 4290.890 3494.170 2921.440 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1801.367 2737.065 4290.172 3740.701 3050.547 2337.485 NA [2,] 2321.483 3814.335 4588.968 4017.079 3230.453 2589.945 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1670.07, 1884.925, 2061.425, 2455.095, 2513.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7tdig1291295589.ps",horizontal=F,onefile=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,] 3162.937 3026.040 3080.409 [2,] 3191.208 3113.153 3163.637 [3,] 3205.879 3254.323 3207.619 [4,] 3246.946 3395.545 3255.565 [5,] 3303.327 3488.465 3284.204 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3180.457 3125.521 3165.690 [2,] 3231.301 3383.124 3249.548 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3162.93666666667, 3191.20833333333, 3205.87916666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qujs1291295589.ps tmp/1qujs1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/2qujs1291295589.ps tmp/2qujs1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/3qujs1291295589.ps tmp/3qujs1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/4jmid1291295589.ps tmp/4jmid1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/5jmid1291295589.ps tmp/5jmid1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/6tdig1291295589.ps tmp/6tdig1291295589.png",intern=TRUE)) character(0) > try(system("convert tmp/7tdig1291295589.ps tmp/7tdig1291295589.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.198 0.947 2.762