R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(125326,122716,116615,113719,110737,112093,143565,149946,149147,134339,122683,115614,116566,111272,104609,101802,94542,93051,124129,130374,123946,114971,105531,104919,104782,101281,94545,93248,84031,87486,115867,120327,117008,108811,104519,106758,109337,109078,108293,106534,99197,103493,130676,137448,134704,123725,118277,121225,120528,118240,112514,107304,100001,102082,130455,135574,132540,119920,112454,109415,109843,106365,102304,97968,92462,92286,120092,126656,124144,114045,108120,105698) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 125326 116566 104782 109337 120528 109843 NA [2,] 122716 111272 101281 109078 118240 106365 NA [3,] 116615 104609 94545 108293 112514 102304 NA [4,] 113719 101802 93248 106534 107304 97968 NA [5,] 110737 94542 84031 99197 100001 92462 NA [6,] 112093 93051 87486 103493 102082 92286 NA [7,] 143565 124129 115867 130676 130455 120092 NA [8,] 149946 130374 120327 137448 135574 126656 NA [9,] 149147 123946 117008 134704 132540 124144 NA [10,] 134339 114971 108811 123725 119920 114045 NA [11,] 122683 105531 104519 118277 112454 108120 NA [12,] 115614 104919 106758 121225 109415 105698 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2610 -5294 -3501 -259 -2288 -3478 NA [2,] -6101 -6663 -6736 -785 -5726 -4061 NA [3,] -2896 -2807 -1297 -1759 -5210 -4336 NA [4,] -2982 -7260 -9217 -7337 -7303 -5506 NA [5,] 1356 -1491 3455 4296 2081 -176 NA [6,] 31472 31078 28381 27183 28373 27806 NA [7,] 6381 6245 4460 6772 5119 6564 NA [8,] -799 -6428 -3319 -2744 -3034 -2512 NA [9,] -14808 -8975 -8197 -10979 -12620 -10099 NA [10,] -11656 -9440 -4292 -5448 -7466 -5925 NA [11,] -7069 -612 2239 2948 -3039 -2422 NA [12,] 952 -137 2579 -697 428 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/wessaorg/rcomp/tmp/1m5rm1331484517.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2t1jj1331484517.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3yv4i1331484517.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4s1c41331484517.ps",horizontal=F,onefile=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,] 104782.0 101281 94545 93248 84031.0 87486.0 115867 120327 117008 [2,] 109337.0 106365 102304 97968 92462.0 92286.0 120092 126656 123946 [3,] 113204.5 110175 106451 104168 96869.5 97566.5 127292 132974 128342 [4,] 120528.0 118240 112514 107304 100001.0 103493.0 130676 137448 134704 [5,] 125326.0 122716 116615 113719 110737.0 112093.0 143565 149946 149147 [,10] [,11] [,12] [1,] 108811.0 104519 104919.0 [2,] 114045.0 105531 105698.0 [3,] 117445.5 110287 108086.5 [4,] 123725.0 118277 115614.0 [5,] 134339.0 122683 121225.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 105985.9 102515.2 99865.22 98145.98 92006.6 90337.62 120465 126012.8 [2,] 120423.1 117834.8 113036.78 110190.02 101732.4 104795.38 134119 139935.2 [,9] [,10] [,11] [,12] [1,] 121402.7 111201.6 102065.4 101690.4 [2,] 135281.3 123689.4 118508.6 114482.6 $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(104782, 109337, 113204.5, 120528, 125326, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5n8lh1331484517.ps",horizontal=F,onefile=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,] -5294 -6736.0 -5210.0 -9217.0 -1491.0 27183 4460 -3319 -14808 -11656.0 [2,] -3501 -6663.0 -4336.0 -7337.0 -176.0 27806 5119 -3319 -12620 -9440.0 [3,] -3044 -5913.5 -2851.5 -7281.5 1718.5 28377 6313 -2889 -10539 -6695.5 [4,] -2288 -4061.0 -1759.0 -5506.0 3455.0 31078 6564 -2512 -8975 -5448.0 [5,] -2288 -785.0 -1297.0 -2982.0 4296.0 31472 6772 -2512 -8197 -4292.0 [,11] [,12] [1,] -7069 -697 [2,] -3039 -137 [3,] -1517 428 [4,] 2239 952 [5,] 2948 2579 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3826.424 -7591.874 -4513.748 -8462.554 -623.6123 26266.45 5380.928 [2,] -2261.576 -4235.126 -1189.252 -6100.446 4060.6123 30487.55 7245.072 [,8] [,9] [,10] [,11] [,12] [1,] -3409.541 -12890.143 -9270.469 -4921.48 -341.4847 [2,] -2368.459 -8187.857 -4120.531 1887.48 1197.4847 $out [1] -259 -799 -6428 $group [1] 1 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5294, -3501, -3044, -2288, -2288, -6736, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6mz5f1331484517.ps",horizontal=F,onefile=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] [1,] 110737.0 93051.0 84031.0 99197.0 100001.0 92286.0 NA [2,] 114666.5 103205.5 93896.5 107413.5 108359.5 100136.0 NA [3,] 122699.5 108401.5 104650.5 113807.0 115377.0 107242.5 NA [4,] 138952.0 120256.0 112339.0 127200.5 125491.5 117068.5 NA [5,] 149946.0 130374.0 120327.0 137448.0 135574.0 126656.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 111622.7 100624.7 96238.75 104782 107563 99519.47 NA [2,] 133776.3 116178.3 113062.25 122832 123191 114965.53 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(110737, 114666.5, 122699.5, 138952, 149946, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7orc71331484517.ps",horizontal=F,onefile=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,] 96828.33 96869.5 96391.0 [2,] 104954.58 105309.5 105094.2 [3,] 111711.33 110231.0 111635.2 [4,] 123382.92 122368.8 122193.1 [5,] 133387.50 132974.0 132282.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103306.0 102450.2 103836.3 [2,] 120116.6 118011.8 119434.1 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(96828.3333333333, 104954.583333333, 111711.333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1m5rm1331484517.ps tmp/1m5rm1331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/2t1jj1331484517.ps tmp/2t1jj1331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/3yv4i1331484517.ps tmp/3yv4i1331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/4s1c41331484517.ps tmp/4s1c41331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/5n8lh1331484517.ps tmp/5n8lh1331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/6mz5f1331484517.ps tmp/6mz5f1331484517.png",intern=TRUE)) character(0) > try(system("convert tmp/7orc71331484517.ps tmp/7orc71331484517.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.773 0.421 2.211