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(10967.87,10433.56,10665.78,10666.71,10682.74,10777.22,10052.6,10213.97,10546.82,10767.2,10444.5,10314.68,9042.56,9220.75,9721.84,9978.53,9923.81,9892.56,10500.98,10179.35,10080.48,9492.44,8616.49,8685.4,8160.67,8048.1,8641.21,8526.63,8474.21,7916.13,7977.64,8334.59,8623.36,9098.03,9154.34,9284.73,9492.49,9682.35,9762.12,10124.63,10540.05,10601.61,10323.73,10418.4,10092.96,10364.91,10152.09,10032.8,10204.59,10001.6,10411.75,10673.38,10539.51,10723.78,10682.06,10283.19,10377.18,10486.64,10545.38,10554.27,10532.54,10324.31,10695.25,10827.81,10872.48,10971.19,11145.65,11234.68,11333.88,10997.97,11036.89,11257.35,11533.59,11963.12,12185.15,12377.62,12512.89,12631.48,12268.53,12754.8,13407.75,13480.21,13673.28,13239.71,13557.69,13901.28,13200.58,13406.97,12538.12,12419.57,12193.88,12656.63,12812.48,12056.67,11322.38,11530.75,11114.08,9181.73,8614.55) > 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] 99 > (np <- floor(n / par1)) [1] 8 > 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] 9 9 9 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10967.87 9042.56 8160.67 9492.49 10204.59 10532.54 11533.59 13557.69 [2,] 10433.56 9220.75 8048.10 9682.35 10001.60 10324.31 11963.12 13901.28 [3,] 10665.78 9721.84 8641.21 9762.12 10411.75 10695.25 12185.15 13200.58 [4,] 10666.71 9978.53 8526.63 10124.63 10673.38 10827.81 12377.62 13406.97 [5,] 10682.74 9923.81 8474.21 10540.05 10539.51 10872.48 12512.89 12538.12 [6,] 10777.22 9892.56 7916.13 10601.61 10723.78 10971.19 12631.48 12419.57 [7,] 10052.60 10500.98 7977.64 10323.73 10682.06 11145.65 12268.53 12193.88 [8,] 10213.97 10179.35 8334.59 10418.40 10283.19 11234.68 12754.80 12656.63 [9,] 10546.82 10080.48 8623.36 10092.96 10377.18 11333.88 13407.75 12812.48 [10,] 10767.20 9492.44 9098.03 10364.91 10486.64 10997.97 13480.21 12056.67 [11,] 10444.50 8616.49 9154.34 10152.09 10545.38 11036.89 13673.28 11322.38 [12,] 10314.68 8685.40 9284.73 10032.80 10554.27 11257.35 13239.71 11530.75 [,9] [1,] 11114.08 [2,] 9181.73 [3,] 8614.55 [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -534.31 178.19 -112.57 189.86 -202.99 -208.23 429.53 343.59 -1932.35 [2,] 232.22 501.09 593.11 79.77 410.15 370.94 222.03 -700.70 -567.18 [3,] 0.93 256.69 -114.58 362.51 261.63 132.56 192.47 206.39 NA [4,] 16.03 -54.72 -52.42 415.42 -133.87 44.67 135.27 -868.85 NA [5,] 94.48 -31.25 -558.08 61.56 184.27 98.71 118.59 -118.55 NA [6,] -724.62 608.42 61.51 -277.88 -41.72 174.46 -362.95 -225.69 NA [7,] 161.37 -321.63 356.95 94.67 -398.87 89.03 486.27 462.75 NA [8,] 332.85 -98.87 288.77 -325.44 93.99 99.20 652.95 155.85 NA [9,] 220.38 -588.04 474.67 271.95 109.46 -335.91 72.46 -755.81 NA [10,] -322.70 -875.95 56.31 -212.82 58.74 38.92 193.07 -734.29 NA [11,] -129.82 68.91 130.39 -119.29 8.89 220.46 -433.57 208.37 NA [12,] -1272.12 -524.73 207.76 171.79 -21.73 276.24 317.98 -416.67 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/1qhdv1229091329.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/2qq951229091329.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/3qqpj1229091329.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/4h6u21229091329.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,] 8160.67 8048.10 8614.55 8526.63 8474.21 9892.56 7977.64 8334.59 [2,] 9492.49 9220.75 9721.84 10051.58 10231.66 10247.08 10188.17 10196.66 [3,] 10532.54 10001.60 10411.75 10670.04 10611.40 10750.50 10591.52 10350.80 [4,] 11114.08 10433.56 10695.25 11602.72 11692.68 11695.38 11669.76 11945.65 [5,] 11533.59 11963.12 10695.25 13406.97 12538.12 12631.48 12268.53 12754.80 [,9] [,10] [,11] [,12] [1,] 8623.36 9098.030 8616.490 8685.400 [2,] 10086.72 9928.675 9653.215 9658.765 [3,] 10462.00 10626.920 10494.940 10434.475 [4,] 12073.18 11527.320 11179.635 11394.050 [5,] 13407.75 13480.210 11322.380 13239.710 $n [1] 9 9 9 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9678.503 9362.853 9899.087 9803.559 9795.245 9941.462 9763.877 [2,] 11386.577 10640.347 10924.413 11536.531 11427.545 11559.538 11419.163 [,8] [,9] [,10] [,11] [,12] [1,] 9373.781 9352.335 9733.894 9642.26 9465.12 [2,] 11327.809 11571.665 11519.946 11347.62 11403.83 $out [1] 13557.69 13901.28 12185.15 13200.58 7916.13 13673.28 $group [1] 1 2 3 3 6 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(8160.67, 9492.49, 10532.54, 11114.08, 11533.59, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sz231229091329.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] [1,] -534.31 79.77 -114.580 -133.870 -118.55 -724.620 -398.87 -325.440 [2,] -208.23 79.77 66.745 -94.295 -74.90 -320.415 -116.30 -2.440 [3,] -112.57 232.22 199.430 -18.195 78.02 -133.705 128.02 127.525 [4,] 189.86 410.15 259.160 89.970 108.65 117.985 409.85 310.810 [5,] 429.53 593.11 362.510 135.270 184.27 608.420 486.27 652.950 [,9] [,10] [,11] [,12] [1,] -755.810 -875.950 -433.570 -1272.12 [2,] -461.975 -528.495 -124.555 -470.70 [3,] 90.960 -86.950 38.900 75.03 [4,] 246.165 57.525 169.380 242.00 [5,] 474.670 193.070 220.460 317.98 $n [1] 9 9 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -322.23073 58.21987 91.94422 -121.12807 -24.51367 -378.6015 -165.8949 [2,] 97.09073 406.22013 306.91578 84.73807 180.55367 111.1915 421.9349 [,8] [,9] [,10] [,11] [,12] [1,] -47.46095 -304.6172 -414.3092 -125.2963 -323.0945 [2,] 302.51095 486.5372 240.4092 203.0963 473.1545 $out [1] -1932.35 -700.70 -567.18 415.42 -868.85 -558.08 $group [1] 1 2 2 4 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-534.310000000001, -208.230000000001, -112.570000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uhaz1229091329.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,] 10052.60 8616.490 7916.130 9492.49 10001.60 10324.31 11533.59 11322.38 [2,] 10374.12 9131.655 8104.385 9897.46 10330.19 10761.53 12226.84 12125.27 [3,] 10606.30 9807.200 8500.420 10138.36 10513.08 10984.58 12572.18 12597.38 [4,] 10724.97 10029.505 8869.620 10391.65 10613.83 11190.17 13323.73 13303.77 [5,] 10967.87 10500.980 9284.730 10601.61 10723.78 11333.88 13673.28 13901.28 [,9] [1,] 8614.55 [2,] 8898.14 [3,] 9181.73 [4,] 10147.90 [5,] 11114.08 $n [1] 12 12 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10446.27 9397.685 8151.391 9912.954 10383.70 10789.08 12071.89 12059.85 [2,] 10766.33 10216.715 8849.449 10363.766 10642.45 11180.08 13072.48 13134.90 [,9] [1,] 8041.678 [2,] 10321.782 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(10052.6, 10374.12, 10606.3, 10724.97, 10967.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7x4cx1229091329.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,] 10306.31 10350.80 9827.155 [2,] 10562.12 10423.11 10404.371 [3,] 10692.41 10513.74 10678.201 [4,] 10791.63 10619.16 10856.450 [5,] 10909.36 10750.50 10897.741 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10587.73 10424.32 10472.01 [2,] 10797.09 10603.16 10884.40 $out [1] 10001.6 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10306.3111111111, 10562.1239583333, 10692.413125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qhdv1229091329.ps tmp/1qhdv1229091329.png") > system("convert tmp/2qq951229091329.ps tmp/2qq951229091329.png") > system("convert tmp/3qqpj1229091329.ps tmp/3qqpj1229091329.png") > system("convert tmp/4h6u21229091329.ps tmp/4h6u21229091329.png") > system("convert tmp/5sz231229091329.ps tmp/5sz231229091329.png") > system("convert tmp/6uhaz1229091329.ps tmp/6uhaz1229091329.png") > system("convert tmp/7x4cx1229091329.ps tmp/7x4cx1229091329.png") > > > proc.time() user system elapsed 2.613 1.605 2.865