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(361.58,363.19,363.61,364.14,365.51,365.51,365.5,365.5,364.59,364.63,364.54,363.67,365.22,369.05,370.45,370.46,370.46,370.58,370.58,370.22,370.21,370.29,370.29,370.2,370.2,372.55,374.51,375.58,375.75,375.75,375.75,375.69,375.76,377.5,377.51,377.74,369.82,373.1,374.55,375.01,374.81,375.31,375.31,375.39,375.59,376.26,377.18,377.26,377.26,381.87,387.09,387.14,388.78,389.16,389.16,389.42,389.49,388.97,388.97,389.09,389.09,391.76,390.96,391.76,392.8,393.06,393.06,393.26,393.87,394.47,394.57,394.57,394.57,399.57,406.13,407.03,409.46,409.9,409.9,410.14,410.54,410.69,410.79,410.97) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 361.58 365.22 370.20 369.82 377.26 389.09 394.57 NA [2,] 363.19 369.05 372.55 373.10 381.87 391.76 399.57 NA [3,] 363.61 370.45 374.51 374.55 387.09 390.96 406.13 NA [4,] 364.14 370.46 375.58 375.01 387.14 391.76 407.03 NA [5,] 365.51 370.46 375.75 374.81 388.78 392.80 409.46 NA [6,] 365.51 370.58 375.75 375.31 389.16 393.06 409.90 NA [7,] 365.50 370.58 375.75 375.31 389.16 393.06 409.90 NA [8,] 365.50 370.22 375.69 375.39 389.42 393.26 410.14 NA [9,] 364.59 370.21 375.76 375.59 389.49 393.87 410.54 NA [10,] 364.63 370.29 377.50 376.26 388.97 394.47 410.69 NA [11,] 364.54 370.29 377.51 377.18 388.97 394.57 410.79 NA [12,] 363.67 370.20 377.74 377.26 389.09 394.57 410.97 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.61 3.83 2.35 3.28 4.61 2.67 5.00 NA [2,] 0.42 1.40 1.96 1.45 5.22 -0.80 6.56 NA [3,] 0.53 0.01 1.07 0.46 0.05 0.80 0.90 NA [4,] 1.37 0.00 0.17 -0.20 1.64 1.04 2.43 NA [5,] 0.00 0.12 0.00 0.50 0.38 0.26 0.44 NA [6,] -0.01 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 -0.36 -0.06 0.08 0.26 0.20 0.24 NA [8,] -0.91 -0.01 0.07 0.20 0.07 0.61 0.40 NA [9,] 0.04 0.08 1.74 0.67 -0.52 0.60 0.15 NA [10,] -0.09 0.00 0.01 0.92 0.00 0.10 0.10 NA [11,] -0.87 -0.09 0.23 0.08 0.12 0.00 0.18 NA [12,] 1.55 0.00 -7.92 0.00 0.00 0.00 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/1npkp1290008212.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/2npkp1290008212.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/3gh2a1290008212.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/4gh2a1290008212.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,] 361.580 363.190 363.610 364.140 365.510 365.510 365.500 365.500 364.59 [2,] 367.520 370.800 372.480 372.735 372.635 372.945 372.945 372.805 372.90 [3,] 370.200 373.100 374.550 375.580 375.750 375.750 375.750 375.690 375.76 [4,] 383.175 386.815 389.025 389.450 390.790 391.110 391.110 391.340 391.68 [5,] 394.570 399.570 406.130 407.030 409.460 409.900 409.900 410.140 410.54 [,10] [,11] [,12] [1,] 364.630 364.540 363.67 [2,] 373.275 373.735 373.73 [3,] 377.500 377.510 377.74 [4,] 391.720 391.770 391.83 [5,] 410.690 410.790 410.97 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 360.8511 363.5361 364.6696 365.5981 364.9081 364.9022 364.9022 364.6212 [2,] 379.5489 382.6639 384.4304 385.5619 386.5919 386.5978 386.5978 386.7588 [,9] [,10] [,11] [,12] [1,] 364.5449 366.4849 366.7398 366.931 [2,] 386.9751 388.5151 388.2802 388.549 $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(361.58, 367.52, 370.2, 383.175, 394.57, 363.19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5981d1290008212.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,] 1.61 -0.80 0.010 -0.200 0.00 0 -0.36 -0.01 -0.520 -0.09 -0.090 0 [2,] 2.51 0.91 0.255 0.085 0.06 0 -0.03 0.03 0.060 0.00 -0.045 0 [3,] 3.28 1.45 0.530 1.040 0.26 0 0.08 0.07 0.150 0.01 0.080 0 [4,] 4.22 3.59 0.850 1.505 0.41 0 0.22 0.30 0.635 0.10 0.150 0 [5,] 5.00 6.56 1.070 2.430 0.50 0 0.26 0.61 0.670 0.10 0.230 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.258816 -0.1504528 0.1746756 0.1919989 0.05098565 0 -0.06929597 [2,] 4.301184 3.0504528 0.8853244 1.8880011 0.46901435 0 0.22929597 [,8] [,9] [,10] [,11] [,12] [1,] -0.09123964 -0.1933807 -0.04971839 -0.03645085 0 [2,] 0.23123964 0.4933807 0.06971839 0.19645085 0 $out [1] -0.01 -0.91 1.74 0.92 -0.87 1.55 -7.92 $group [1] 6 8 9 10 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.61000000000001, 2.51000000000002, 3.28000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6981d1290008212.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,] 361.580 370.200 374.510 373.100 387.090 389.09 406.130 NA [2,] 363.640 370.205 375.045 374.680 387.115 391.76 406.580 NA [3,] 364.565 370.290 375.750 375.310 388.970 393.06 409.900 NA [4,] 365.500 370.460 376.630 375.925 389.160 394.17 410.615 NA [5,] 365.510 370.580 377.740 377.260 389.490 394.57 410.970 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 363.7166 370.1737 375.0271 374.7421 388.0373 391.9608 408.0596 NA [2,] 365.4134 370.4063 376.4729 375.8779 389.9027 394.1592 411.7404 NA $out [1] 365.22 369.05 370.20 372.55 369.82 377.26 381.87 394.57 399.57 $group [1] 2 2 3 3 4 5 5 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(361.58, 363.64, 364.565, 365.5, 365.51, 370.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7981d1290008212.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,] 378.7271 373.100 378.8075 [2,] 381.3157 375.065 380.9225 [3,] 382.7521 375.750 382.0275 [4,] 383.0614 376.630 382.3937 [5,] 383.4071 377.740 382.7800 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 381.9559 375.0362 381.3565 [2,] 383.5484 376.4638 382.6985 $out [1] 375.3914 370.2000 375.3475 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(378.727142857143, 381.315714285714, 382.752142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1npkp1290008212.ps tmp/1npkp1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/2npkp1290008212.ps tmp/2npkp1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/3gh2a1290008212.ps tmp/3gh2a1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/4gh2a1290008212.ps tmp/4gh2a1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/5981d1290008212.ps tmp/5981d1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/6981d1290008212.ps tmp/6981d1290008212.png",intern=TRUE)) character(0) > try(system("convert tmp/7981d1290008212.ps tmp/7981d1290008212.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.219 0.958 2.800