R version 2.7.0 (2008-04-22) 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(11835.70,11542.20,13093.70,11180.20,12035.70,12112.00,10875.20,9897.30,11672.10,12385.70,11405.60,9830.90,11025.10,10853.80,12252.60,11839.40,11669.10,11601.40,11178.40,9516.40,12102.80,12989.00,11610.20,10205.50,11356.20,11307.10,12648.60,11947.20,11714.10,12192.50,11268.80,9097.40,12639.80,13040.10,11687.30,11191.70,11391.90,11793.10,13933.20,12778.10,11810.30,13698.40,11956.60,10723.80,13938.90,13979.80,13807.40,12973.90,12509.80,12934.10,14908.30,13772.10,13012.60,14049.90,11816.50,11593.20,14466.20,13615.90,14733.90,13880.70,13527.50,13584.00,16170.20,13260.60,14741.90,15486.50,13154.50,12621.20,15031.60,15452.40,15428.00,13105.90) > 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,] 11835.7 11025.1 11356.2 11391.9 12509.8 13527.5 NA [2,] 11542.2 10853.8 11307.1 11793.1 12934.1 13584.0 NA [3,] 13093.7 12252.6 12648.6 13933.2 14908.3 16170.2 NA [4,] 11180.2 11839.4 11947.2 12778.1 13772.1 13260.6 NA [5,] 12035.7 11669.1 11714.1 11810.3 13012.6 14741.9 NA [6,] 12112.0 11601.4 12192.5 13698.4 14049.9 15486.5 NA [7,] 10875.2 11178.4 11268.8 11956.6 11816.5 13154.5 NA [8,] 9897.3 9516.4 9097.4 10723.8 11593.2 12621.2 NA [9,] 11672.1 12102.8 12639.8 13938.9 14466.2 15031.6 NA [10,] 12385.7 12989.0 13040.1 13979.8 13615.9 15452.4 NA [11,] 11405.6 11610.2 11687.3 13807.4 14733.9 15428.0 NA [12,] 9830.9 10205.5 11191.7 12973.9 13880.7 13105.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -293.5 -171.3 -49.1 401.2 424.3 56.5 NA [2,] 1551.5 1398.8 1341.5 2140.1 1974.2 2586.2 NA [3,] -1913.5 -413.2 -701.4 -1155.1 -1136.2 -2909.6 NA [4,] 855.5 -170.3 -233.1 -967.8 -759.5 1481.3 NA [5,] 76.3 -67.7 478.4 1888.1 1037.3 744.6 NA [6,] -1236.8 -423.0 -923.7 -1741.8 -2233.4 -2332.0 NA [7,] -977.9 -1662.0 -2171.4 -1232.8 -223.3 -533.3 NA [8,] 1774.8 2586.4 3542.4 3215.1 2873.0 2410.4 NA [9,] 713.6 886.2 400.3 40.9 -850.3 420.8 NA [10,] -980.1 -1378.8 -1352.8 -172.4 1118.0 -24.4 NA [11,] -1574.7 -1404.7 -495.6 -833.5 -853.2 -2322.1 NA [12,] 1194.2 1150.7 200.2 -464.1 -353.2 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/13mqc1212241008.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/2yj0s1212241008.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/3usxw1212241008.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/4vsa61212241008.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] [1,] 11025.1 10853.80 12252.60 11180.20 11669.1 11601.40 10875.20 9097.40 [2,] 11356.2 11307.10 12648.60 11839.40 11714.1 12112.00 11178.40 9516.40 [3,] 11613.8 11667.65 13513.45 12362.65 11923.0 12945.45 11542.65 10310.55 [4,] 12509.8 12934.10 14908.30 13260.60 13012.6 14049.90 11956.60 11593.20 [5,] 13527.5 13584.00 16170.20 13772.10 14741.9 15486.50 11956.60 12621.20 [,9] [,10] [,11] [,12] [1,] 11672.10 12385.7 11405.60 9830.9 [2,] 12102.80 12989.0 11610.20 10205.5 [3,] 13289.35 13328.0 12747.35 12082.8 [4,] 14466.20 13979.8 14733.90 13105.9 [5,] 15031.60 15452.4 15428.00 13880.7 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10869.69 10618.18 12055.87 11445.93 11085.43 11695.44 11040.69 8970.947 [2,] 12357.91 12717.12 14971.03 13279.37 12760.57 14195.46 12044.61 11650.153 [,9] [,10] [,11] [,12] [1,] 11764.88 12688.90 10732.46 10211.95 [2,] 14813.82 13967.10 14762.24 13953.65 $out [1] 13154.5 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11025.1, 11356.2, 11613.8, 12509.8, 13527.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56qt01212241008.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] [1,] -293.5 1341.50 -2909.60 -967.8 -67.7 -2332.0 -2171.40 1774.8 -850.30 [2,] -171.3 1398.80 -1913.50 -759.5 76.3 -2233.4 -1662.00 2410.4 40.90 [3,] 3.7 1762.85 -1145.65 -201.7 611.5 -1489.3 -1105.35 2729.7 410.55 [4,] 401.2 2140.10 -701.40 855.5 1037.3 -923.7 -533.30 3215.1 713.60 [5,] 424.3 2586.20 -413.20 1481.3 1888.1 -423.0 -223.30 3542.4 886.20 [,10] [,11] [,12] [1,] -1378.80 -2322.10 -464.1 [2,] -1352.80 -1574.70 -353.2 [3,] -576.25 -1128.95 200.2 [4,] -24.40 -833.50 1150.7 [5,] 1118.00 -495.60 1194.2 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -365.581 1284.688 -1927.4936 -1243.4272 -8.37604 -2334.0988 -1833.3980 [2,] 372.981 2241.012 -363.8064 840.0272 1231.37604 -644.5012 -377.3020 [,8] [,9] [,10] [,11] [,12] [1,] 2210.643 -23.36323 -1433.1109 -1607.048 -862.452 [2,] 3248.757 844.46323 280.6109 -650.852 1262.852 $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(-293.5, -171.300000000001, 3.69999999999982, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sit21212241008.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] [1,] 9830.90 9516.40 11191.70 10723.8 11593.20 12621.20 NA [2,] 11027.70 10939.45 11287.95 11801.7 12721.95 13207.55 NA [3,] 11607.15 11605.80 11700.70 12876.0 13694.00 14162.95 NA [4,] 12073.85 11971.10 12416.15 13870.3 14258.05 15440.20 NA [5,] 13093.70 12989.00 13040.10 13979.8 14908.30 16170.20 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11129.99 11135.26 11186.12 11932.50 12993.37 13144.62 NA [2,] 12084.31 12076.34 12215.28 13819.50 14394.63 15181.28 NA $out [1] 9097.4 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(9830.9, 11027.7, 11607.15, 12073.85, 13093.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/71b881212241008.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,] 10574.88 10310.55 10493.74 [2,] 11902.90 11640.73 11807.84 [3,] 12480.11 12222.73 12378.21 [4,] 13249.34 13117.40 13175.79 [5,] 13834.43 13513.45 13712.20 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11865.99 11549.20 11754.28 [2,] 13094.23 12896.25 13002.15 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10574.8833333333, 11902.9, 12480.1083333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13mqc1212241008.ps tmp/13mqc1212241008.png") > system("convert tmp/2yj0s1212241008.ps tmp/2yj0s1212241008.png") > system("convert tmp/3usxw1212241008.ps tmp/3usxw1212241008.png") > system("convert tmp/4vsa61212241008.ps tmp/4vsa61212241008.png") > system("convert tmp/56qt01212241008.ps tmp/56qt01212241008.png") > system("convert tmp/6sit21212241008.ps tmp/6sit21212241008.png") > system("convert tmp/71b881212241008.ps tmp/71b881212241008.png") > > > proc.time() user system elapsed 1.452 0.978 6.508