R version 2.8.0 (2008-10-20) 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(2120.88,2174.56,2196.72,2350.44,2440.25,2408.64,2472.81,2407.60,2454.62,2448.05,2497.84,2645.64,2756.76,2849.27,2921.44,2981.85,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,3801.06,3570.12,3701.61,3862.27,3970.10,4138.52,4199.75,4290.89,4443.91,4502.64,4356.98,4591.27,4696.96,4621.40,4562.84,4202.52,4296.49,4435.23,4105.18,4116.68,3844.49,3720.98,3674.40,3857.62,3801.06,3504.37,3032.60,3047.03,2962.34) > 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,] 2120.88 2756.76 3295.32 4138.52 4435.23 NA [2,] 2174.56 2849.27 3363.99 4199.75 4105.18 NA [3,] 2196.72 2921.44 3494.17 4290.89 4116.68 NA [4,] 2350.44 2981.85 3667.03 4443.91 3844.49 NA [5,] 2440.25 3080.58 3813.06 4502.64 3720.98 NA [6,] 2408.64 3106.22 3917.96 4356.98 3674.40 NA [7,] 2472.81 3119.31 3895.51 4591.27 3857.62 NA [8,] 2407.60 3061.26 3801.06 4696.96 3801.06 NA [9,] 2454.62 3097.31 3570.12 4621.40 3504.37 NA [10,] 2448.05 3161.69 3701.61 4562.84 3032.60 NA [11,] 2497.84 3257.16 3862.27 4202.52 3047.03 NA [12,] 2645.64 3277.01 3970.10 4296.49 2962.34 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 53.68 92.51 68.67 61.23 -330.05 NA [2,] 22.16 72.17 130.18 91.14 11.50 NA [3,] 153.72 60.41 172.86 153.02 -272.19 NA [4,] 89.81 98.73 146.03 58.73 -123.51 NA [5,] -31.61 25.64 104.90 -145.66 -46.58 NA [6,] 64.17 13.09 -22.45 234.29 183.22 NA [7,] -65.21 -58.05 -94.45 105.69 -56.56 NA [8,] 47.02 36.05 -230.94 -75.56 -296.69 NA [9,] -6.57 64.38 131.49 -58.56 -471.77 NA [10,] 49.79 95.47 160.66 -360.32 14.43 NA [11,] 147.80 19.85 107.83 93.97 -84.69 NA [12,] 111.12 18.31 168.42 138.74 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/1rrjy1229336921.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/2o8ii1229336921.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/3c8ij1229336921.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/43p8m1229336921.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,] 2120.88 2174.56 2196.72 2350.44 2440.25 2408.64 2472.81 2407.60 2454.62 [2,] 2756.76 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 [3,] 3295.32 3363.99 3494.17 3667.03 3720.98 3674.40 3857.62 3801.06 3504.37 [4,] 4138.52 4105.18 4116.68 3844.49 3813.06 3917.96 3895.51 3801.06 3570.12 [5,] 4435.23 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 3570.12 [,10] [,11] [,12] [1,] 2448.05 2497.84 2645.64 [2,] 3032.60 3047.03 2962.34 [3,] 3161.69 3257.16 3277.01 [4,] 3701.61 3862.27 3970.10 [5,] 4562.84 4202.52 4296.49 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2318.972 2476.567 2649.616 3057.491 3203.411 3100.827 3309.159 3278.319 [2,] 4271.668 4251.413 4338.724 4276.569 4238.549 4247.973 4406.081 4323.801 [,9] [,10] [,11] [,12] [1,] 3170.284 2688.969 2681.113 2564.929 [2,] 3838.456 3634.411 3833.207 3989.091 $out [1] 4621.4 $group [1] 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2120.88, 2756.76, 3295.32, 4138.52, 4435.23, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5d2rn1229336921.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,] 53.68 11.50 60.41 58.73 -145.66 -22.45 -65.21 -296.69 -58.56 14.43 [2,] 53.68 22.16 60.41 58.73 -46.58 13.09 -65.21 -230.94 -58.56 14.43 [3,] 61.23 72.17 153.02 89.81 -31.61 64.17 -58.05 -75.56 -6.57 49.79 [4,] 68.67 91.14 153.72 98.73 25.64 183.22 -56.56 36.05 64.38 95.47 [5,] 68.67 130.18 172.86 146.03 104.90 234.29 -56.56 47.02 131.49 160.66 [,11] [,12] [1,] -84.69 18.310 [2,] 19.85 64.715 [3,] 93.97 124.930 [4,] 107.83 153.580 [5,] 147.80 168.420 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 50.6381 23.42891 87.08739 61.5461 -82.64047 -56.04343 -64.16207 [2,] 71.8219 120.91109 218.95261 118.0739 19.42047 184.38343 -51.93793 [,8] [,9] [,10] [,11] [,12] [1,] -264.2145 -93.4391 -7.47266 31.80355 54.72665 [2,] 113.0945 80.2991 107.05266 156.13645 195.13335 $out [1] 92.51 -330.05 -272.19 -123.51 -94.45 105.69 -471.77 -360.32 $group [1] 1 1 3 4 7 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(53.6799999999998, 53.6799999999998, 61.2299999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6u96d1229336921.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,] 2120.880 2756.760 3295.320 4138.520 2962.34 NA [2,] 2273.580 2951.645 3532.145 4246.705 3275.70 NA [3,] 2424.445 3088.945 3751.335 4400.445 3761.02 NA [4,] 2463.715 3140.500 3878.890 4577.055 3981.40 NA [5,] 2645.640 3277.010 3970.100 4696.960 4435.23 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2337.723 3002.807 3593.182 4249.77 3439.145 NA [2,] 2511.167 3175.083 3909.488 4551.12 4082.895 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2120.88, 2273.58, 2424.445, 2463.715, 2645.64, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7twi61229336921.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,] 3338.550 3161.690 3333.715 [2,] 3377.361 3286.165 3422.165 [3,] 3439.940 3499.270 3451.145 [4,] 3502.171 3697.690 3492.318 [5,] 3587.304 3857.620 3519.060 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3383.013 3311.571 3419.148 [2,] 3496.867 3686.969 3483.142 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3338.55, 3377.361, 3439.94, 3502.171, 3587.304, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rrjy1229336921.ps tmp/1rrjy1229336921.png") > system("convert tmp/2o8ii1229336921.ps tmp/2o8ii1229336921.png") > system("convert tmp/3c8ij1229336921.ps tmp/3c8ij1229336921.png") > system("convert tmp/43p8m1229336921.ps tmp/43p8m1229336921.png") > system("convert tmp/5d2rn1229336921.ps tmp/5d2rn1229336921.png") > system("convert tmp/6u96d1229336921.ps tmp/6u96d1229336921.png") > system("convert tmp/7twi61229336921.ps tmp/7twi61229336921.png") > > > proc.time() user system elapsed 1.181 0.916 1.494