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(3016.70,3052.40,3099.60,3103.30,3119.80,3093.70,3164.90,3311.50,3410.60,3392.60,3338.20,3285.10,3294.80,3611.20,3611.30,3521.00,3519.30,3438.30,3534.90,3705.80,3807.60,3663.00,3604.50,3563.80,3511.40,3546.50,3525.40,3529.90,3591.60,3668.30,3728.80,3853.60,3897.70,3640.70,3495.50,3495.10,3268.00,3479.10,3417.80,3521.30,3487.10,3529.90,3544.30,3710.80,3641.90,3447.10,3386.80,3438.50,3364.30,3462.70,3291.90,3550.00,3611.00,3708.60,3771.10,4042.70,3988.40,3851.20,3876.70) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 3016.7 3294.8 3511.4 3268.0 3364.3 [2,] 3052.4 3611.2 3546.5 3479.1 3462.7 [3,] 3099.6 3611.3 3525.4 3417.8 3291.9 [4,] 3103.3 3521.0 3529.9 3521.3 3550.0 [5,] 3119.8 3519.3 3591.6 3487.1 3611.0 [6,] 3093.7 3438.3 3668.3 3529.9 3708.6 [7,] 3164.9 3534.9 3728.8 3544.3 3771.1 [8,] 3311.5 3705.8 3853.6 3710.8 4042.7 [9,] 3410.6 3807.6 3897.7 3641.9 3988.4 [10,] 3392.6 3663.0 3640.7 3447.1 3851.2 [11,] 3338.2 3604.5 3495.5 3386.8 3876.7 [12,] 3285.1 3563.8 3495.1 3438.5 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 35.7 316.4 35.1 211.1 98.4 [2,] 47.2 0.1 -21.1 -61.3 -170.8 [3,] 3.7 -90.3 4.5 103.5 258.1 [4,] 16.5 -1.7 61.7 -34.2 61.0 [5,] -26.1 -81.0 76.7 42.8 97.6 [6,] 71.2 96.6 60.5 14.4 62.5 [7,] 146.6 170.9 124.8 166.5 271.6 [8,] 99.1 101.8 44.1 -68.9 -54.3 [9,] -18.0 -144.6 -257.0 -194.8 -137.2 [10,] -54.4 -58.5 -145.2 -60.3 25.5 [11,] -53.1 -40.7 -0.4 51.7 NA [12,] 9.7 -52.4 -227.1 -74.2 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/1n9s21258155986.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/28be91258155986.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/3j5191258155986.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/4x3qz1258155986.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,] 3268.0 3462.7 3099.6 3521.0 3487.1 3093.7 3534.9 3705.8 3410.6 3392.6 [2,] 3268.0 3462.7 3291.9 3521.0 3487.1 3438.3 3534.9 3705.8 3641.9 3447.1 [3,] 3294.8 3479.1 3417.8 3521.3 3519.3 3529.9 3544.3 3710.8 3807.6 3640.7 [4,] 3364.3 3546.5 3525.4 3529.9 3591.6 3668.3 3728.8 3853.6 3897.7 3663.0 [5,] 3364.3 3611.2 3611.3 3529.9 3611.0 3708.6 3771.1 4042.7 3988.4 3851.2 [,11] [,12] [1,] 3338.2 3285.10 [2,] 3386.8 3361.80 [3,] 3495.5 3466.80 [4,] 3604.5 3529.45 [5,] 3876.7 3563.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3226.755 3419.887 3252.809 3515.011 3445.461 3367.383 3407.291 3606.365 [2,] 3362.845 3538.313 3582.791 3527.589 3593.139 3692.417 3681.309 3815.235 [,9] [,10] [,11] [,12] [1,] 3626.852 3488.146 3341.674 3334.357 [2,] 3988.348 3793.254 3649.326 3599.244 $out [1] 3016.7 3511.4 3052.4 3103.3 3550.0 3119.8 3164.9 3311.5 $group [1] 1 1 2 4 4 5 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3268, 3268, 3294.8, 3364.3, 3364.3, 3462.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5elwl1258155986.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,] 35.1 -61.3 -90.3 -34.2 -81.0 60.5 124.8 -68.9 -257.0 -60.3 -53.10 -227.10 [2,] 35.7 -61.3 3.7 -1.7 -26.1 60.5 146.6 -54.3 -194.8 -60.3 -46.90 -150.65 [3,] 98.4 -21.1 4.5 16.5 42.8 62.5 166.5 44.1 -144.6 -58.5 -20.55 -63.30 [4,] 211.1 0.1 103.5 61.0 76.7 71.2 170.9 99.1 -137.2 -54.4 25.65 -21.35 [5,] 316.4 47.2 103.5 61.7 97.6 71.2 170.9 101.8 -137.2 -54.4 51.70 9.70 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -25.5372 -64.48509 -66.01843 -27.80366 -29.83822 54.93941 149.3297 [2,] 222.3372 22.28509 75.01843 60.80366 115.43822 70.06059 183.6703 [,8] [,9] [,10] [,11] [,12] [1,] -64.29205 -185.3000 -62.66893 -77.8645 -165.447 [2,] 152.49205 -103.9000 -54.33107 36.7645 38.847 $out [1] -170.8 258.1 96.6 14.4 271.6 -18.0 -145.2 25.5 $group [1] 2 3 6 6 7 9 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(35.0999999999999, 35.7000000000003, 98.3999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69zpr1258155986.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] [1,] 3016.70 3438.30 3495.10 3268.00 3291.90 [2,] 3096.65 3520.15 3518.40 3428.15 3506.35 [3,] 3142.35 3584.15 3569.05 3483.10 3708.60 [4,] 3324.85 3637.15 3698.55 3537.10 3863.95 [5,] 3410.60 3807.60 3897.70 3641.90 4042.70 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 3038.266 3530.786 3486.882 3433.407 3538.244 [2,] 3246.434 3637.514 3651.218 3532.793 3878.956 $out [1] 3294.8 3710.8 $group [1] 2 4 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(3016.7, 3096.65, 3142.35, 3324.85, 3410.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7031b1258155986.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,] 3291.04 3294.80 3316.150 [2,] 3437.74 3472.95 3475.931 [3,] 3476.76 3520.30 3532.400 [4,] 3573.86 3592.50 3593.450 [5,] 3749.24 3710.80 3631.850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3414.675 3465.772 3478.799 [2,] 3538.845 3574.828 3586.001 $out [1] 3807.6 3779.7 3769.8 $group [1] 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3291.04, 3437.74, 3476.76, 3573.86, 3749.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1n9s21258155986.ps tmp/1n9s21258155986.png") > system("convert tmp/28be91258155986.ps tmp/28be91258155986.png") > system("convert tmp/3j5191258155986.ps tmp/3j5191258155986.png") > system("convert tmp/4x3qz1258155986.ps tmp/4x3qz1258155986.png") > system("convert tmp/5elwl1258155986.ps tmp/5elwl1258155986.png") > system("convert tmp/69zpr1258155986.ps tmp/69zpr1258155986.png") > system("convert tmp/7031b1258155986.ps tmp/7031b1258155986.png") > > > proc.time() user system elapsed 1.244 0.980 1.520