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(90398,90269,90390,88219,87032,87175,92603,93571,94118,92159,89528,89955,89587,89488,88521,86587,85159,84915,91378,92729,92194,89664,86285,86858,87184,86629,85220,84816,84831,84957,90951,92134,91790,86625,83324,82719,83614,81640,78665,77828,75728,72187,79357,81329,77304,75576,72932,74291,74988,73302,70483,69848,66466,67610,75091,76207,73454,72008,71362,74250) > 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,] 90398 89587 87184 83614 74988 NA [2,] 90269 89488 86629 81640 73302 NA [3,] 90390 88521 85220 78665 70483 NA [4,] 88219 86587 84816 77828 69848 NA [5,] 87032 85159 84831 75728 66466 NA [6,] 87175 84915 84957 72187 67610 NA [7,] 92603 91378 90951 79357 75091 NA [8,] 93571 92729 92134 81329 76207 NA [9,] 94118 92194 91790 77304 73454 NA [10,] 92159 89664 86625 75576 72008 NA [11,] 89528 86285 83324 72932 71362 NA [12,] 89955 86858 82719 74291 74250 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -129 -99 -555 -1974 -1686 NA [2,] 121 -967 -1409 -2975 -2819 NA [3,] -2171 -1934 -404 -837 -635 NA [4,] -1187 -1428 15 -2100 -3382 NA [5,] 143 -244 126 -3541 1144 NA [6,] 5428 6463 5994 7170 7481 NA [7,] 968 1351 1183 1972 1116 NA [8,] 547 -535 -344 -4025 -2753 NA [9,] -1959 -2530 -5165 -1728 -1446 NA [10,] -2631 -3379 -3301 -2644 -646 NA [11,] 427 573 -605 1359 2888 NA [12,] -368 326 895 697 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/freestat/rcomp/tmp/1fk4y1257694745.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/freestat/rcomp/tmp/2f2l51257694745.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/freestat/rcomp/tmp/3s90f1257694745.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/freestat/rcomp/tmp/45h101257694745.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] [,11] [,12] [1,] 74988 73302 70483 69848 66466 67610 75091 76207 73454 72008 71362 74250 [2,] 83614 81640 78665 77828 75728 72187 79357 81329 77304 75576 72932 74291 [3,] 87184 86629 85220 84816 84831 84915 90951 92134 91790 86625 83324 82719 [4,] 89587 89488 88521 86587 85159 84957 91378 92729 92194 89664 86285 86858 [5,] 90398 90269 90390 88219 87032 87175 92603 93571 94118 92159 89528 89955 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82963.5 81083.62 78255.78 78626.91 78167.08 75891.75 82456.99 84078.79 [2,] 91404.5 92174.38 92184.22 91005.09 91494.92 93938.25 99445.01 100189.21 [,9] [,10] [,11] [,12] [1,] 81268.76 76670.45 73888.8 73839.19 [2,] 102311.24 96579.55 92759.2 91598.81 $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(74988, 83614, 87184, 89587, 90398, 73302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ztu21257694745.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,] -1974 -2975 -2171 -3382 -244 5428 968 -4025 -2530 -3379 -605 -368.0 [2,] -1686 -2819 -1934 -2100 -244 5994 1116 -2753 -2530 -3301 427 -21.0 [3,] -555 -1409 -837 -1428 126 6463 1183 -535 -1959 -2644 573 511.5 [4,] -129 -967 -635 -1187 143 7170 1351 -344 -1728 -2631 1359 796.0 [5,] -99 121 -404 15 143 7481 1351 547 -1446 -2631 1359 895.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1655.1723 -2717.6185 -1754.87013 -2073.1235 -147.4532 5632.041 1016.950 [2,] 545.1723 -100.3815 80.87013 -782.8765 399.4532 7293.959 1349.050 [,8] [,9] [,10] [,11] [,12] [1,] -2237.193 -2525.691 -3117.420 -85.54885 -133.93 [2,] 1167.193 -1392.309 -2170.580 1231.54885 1156.93 $out [1] -3541 1144 1972 -5165 -646 2888 $group [1] 5 5 7 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1974, -1686, -555, -129, -99, -2975, -2819, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6zubc1257694745.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,] 87032.0 84915.0 82719.0 72187.0 66466.0 NA [2,] 88873.5 86436.0 84823.5 74933.5 70165.5 NA [3,] 90329.5 89004.5 85922.5 77566.0 72655.0 NA [4,] 92381.0 90521.0 89067.5 80343.0 74619.0 NA [5,] 94118.0 92729.0 92134.0 83614.0 76207.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 88729.7 87141.3 83986.78 75098.69 70623.73 NA [2,] 91929.3 90867.7 87858.22 80033.31 74686.27 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(87032, 88873.5, 90329.5, 92381, 94118, 84915, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/75mti1257694745.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,] 79368.8 82719.0 78572.00 [2,] 81072.9 84823.5 80509.00 [3,] 82931.1 85922.5 83106.50 [4,] 85463.1 89067.5 85465.75 [5,] 87194.0 92134.0 87029.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 80928.7 83986.78 80845.7 [2,] 84933.5 87858.22 85367.3 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(79368.8, 81072.9, 82931.1, 85463.1, 87194, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fk4y1257694745.ps tmp/1fk4y1257694745.png") > system("convert tmp/2f2l51257694745.ps tmp/2f2l51257694745.png") > system("convert tmp/3s90f1257694745.ps tmp/3s90f1257694745.png") > system("convert tmp/45h101257694745.ps tmp/45h101257694745.png") > system("convert tmp/5ztu21257694745.ps tmp/5ztu21257694745.png") > system("convert tmp/6zubc1257694745.ps tmp/6zubc1257694745.png") > system("convert tmp/75mti1257694745.ps tmp/75mti1257694745.png") > > > proc.time() user system elapsed 1.987 1.528 2.314