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(3595,3914,4159,3676,3794,3446,3504,3958,3353,3480,3098,2944,3389,3497,4404,3849,3734,3060,3507,3287,3215,3764,2734,2837,2766,3851,3289,3848,3348,3682,4058,3655,3811,3341,3032,3475,3353,3186,3902,4164,3499,4145,3796,3711,3949,3740,3243,4407,4814,3908,5250,3937,4004,5560,3922,3759,4138,4634,3996,4308,4143,4429,5219,4929,5755,5592,4163,4962,5208,4755,4491,5732,5731,5040,6102,4904,5369,5578,4619,4731,5011,5299,4146,4625,4736) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3595 3389 2766 3353 4814 4143 5731 4736 [2,] 3914 3497 3851 3186 3908 4429 5040 NA [3,] 4159 4404 3289 3902 5250 5219 6102 NA [4,] 3676 3849 3848 4164 3937 4929 4904 NA [5,] 3794 3734 3348 3499 4004 5755 5369 NA [6,] 3446 3060 3682 4145 5560 5592 5578 NA [7,] 3504 3507 4058 3796 3922 4163 4619 NA [8,] 3958 3287 3655 3711 3759 4962 4731 NA [9,] 3353 3215 3811 3949 4138 5208 5011 NA [10,] 3480 3764 3341 3740 4634 4755 5299 NA [11,] 3098 2734 3032 3243 3996 4491 4146 NA [12,] 2944 2837 3475 4407 4308 5732 4625 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 319 108 1085 -167 -906 286 -691 NA [2,] 245 907 -562 716 1342 790 1062 NA [3,] -483 -555 559 262 -1313 -290 -1198 NA [4,] 118 -115 -500 -665 67 826 465 NA [5,] -348 -674 334 646 1556 -163 209 NA [6,] 58 447 376 -349 -1638 -1429 -959 NA [7,] 454 -220 -403 -85 -163 799 112 NA [8,] -605 -72 156 238 379 246 280 NA [9,] 127 549 -470 -209 496 -453 288 NA [10,] -382 -1030 -309 -497 -638 -264 -1153 NA [11,] -154 103 443 1164 312 1241 479 NA [12,] 445 -71 -122 407 -165 -1 111 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/1gqe11257960528.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/277bi1257960528.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/3yguq1257960528.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/4l4t31257960528.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] [1,] 2766 3186.0 3289.0 3676.0 3348.0 3060 3504.0 3287.0 3215.0 3341.0 2734 [2,] 3371 3674.0 4030.5 3848.5 3616.5 3564 3651.5 3683.0 3582.0 3610.0 3065 [3,] 3869 3908.0 4404.0 3937.0 3794.0 4145 3922.0 3759.0 3949.0 3764.0 3243 [4,] 4775 4171.5 5234.5 4534.0 4686.5 5569 4110.5 4344.5 4574.5 4694.5 4071 [5,] 5731 4429.0 6102.0 4929.0 5755.0 5592 4619.0 4962.0 5208.0 5299.0 4491 [,12] [1,] 2837.0 [2,] 3209.5 [3,] 4308.0 [4,] 4516.0 [5,] 5732.0 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3084.705 3610.901 3684.991 3527.630 3155.013 2947.646 3647.893 3363.963 [2,] 4653.295 4205.099 5123.009 4346.370 4432.987 5342.354 4196.107 4154.037 [,9] [,10] [,11] [,12] [1,] 3356.295 3116.354 2642.233 3527.779 [2,] 4541.705 4411.646 3843.767 5088.221 $out [1] 5040 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2766, 3371, 3869, 4775, 5731, 3186, 3674, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5ct161257960528.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] [1,] -906.0 245.0 -1313.0 -665.0 -674.0 -1638 -403.0 -72 -470 -1153.0 -154.0 [2,] -429.0 480.5 -876.5 -307.5 -255.5 -1194 -191.5 42 -331 -834.0 207.5 [3,] 108.0 790.0 -483.0 67.0 209.0 -349 -85.0 238 127 -497.0 443.0 [4,] 302.5 984.5 -14.0 291.5 490.0 217 283.0 263 392 -345.5 821.5 [5,] 1085.0 1342.0 559.0 826.0 1556.0 447 799.0 379 549 -264.0 1241.0 [,12] [1,] -165.0 [2,] -96.5 [3,] -1.0 [4,] 259.0 [5,] 445.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -328.84 489.0193 -998.07109 -290.7131 -236.2006 -1191.6264 -368.3637 [2,] 544.84 1090.9807 32.07109 424.7131 654.2006 493.6264 198.3637 [,8] [,9] [,10] [,11] [,12] [1,] 106.0224 -304.7639 -788.7243 76.3291 -213.2989 [2,] 369.9776 558.7639 -205.2757 809.6709 211.2989 $out [1] -562 -605 $group [1] 2 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-906, -429, 108, 302.5, 1085, 245, 480.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6me0j1257960528.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] [,7] [,8] [1,] 2944.0 2734.0 2766.0 3186 3759.0 4143.0 4146.0 4736 [2,] 3399.5 3137.5 3315.0 3426 3929.5 4460.0 4678.0 4736 [3,] 3549.5 3443.0 3565.0 3768 4071.0 4945.5 5025.5 4736 [4,] 3854.0 3749.0 3829.5 4047 4724.0 5405.5 5473.5 4736 [5,] 4159.0 4404.0 4058.0 4407 5560.0 5755.0 6102.0 4736 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3342.199 3164.091 3330.333 3484.758 3708.623 4514.251 4662.667 4736 [2,] 3756.801 3721.909 3799.667 4051.242 4433.377 5376.749 5388.333 4736 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2944, 3399.5, 3549.5, 3854, 4159, 2734, 3137.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7lxwj1257960528.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,] 3938.429 3759 3568.000 [2,] 3992.000 3779 3901.875 [3,] 4081.866 3915 4073.000 [4,] 4200.714 4047 4171.750 [5,] 4437.571 4404 4566.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3986.670 3792.763 3949.908 [2,] 4177.062 4037.237 4196.092 $out [1] 4617.857 3534.286 3243.000 4632.500 $group [1] 1 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3938.42857142857, 3992, 4081.86607142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1gqe11257960528.ps tmp/1gqe11257960528.png") > system("convert tmp/277bi1257960528.ps tmp/277bi1257960528.png") > system("convert tmp/3yguq1257960528.ps tmp/3yguq1257960528.png") > system("convert tmp/4l4t31257960528.ps tmp/4l4t31257960528.png") > system("convert tmp/5ct161257960528.ps tmp/5ct161257960528.png") > system("convert tmp/6me0j1257960528.ps tmp/6me0j1257960528.png") > system("convert tmp/7lxwj1257960528.ps tmp/7lxwj1257960528.png") > > > proc.time() user system elapsed 1.903 1.497 2.230