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(2220.6,2161.5,1863.6,1955.1,1907.4,1889.4,2246.3,2213,1965,2285.6,1983.8,1872.4,2371.4,2287,2198.2,2330.4,2014.4,2066.1,2355.8,2232.5,2091.7,2376.5,1931.9,2025.7,2404.9,2316.1,2368.1,2282.5,2158.6,2174.8,2594.1,2281.4,2547.9,2606.3,2190.8,2262.3,2423.8,2520.4,2482.9,2215.9,2441.9,2333.8,2670.2,2431,2559.3,2661.4,2404.6,2378.3,2489.2,2941,2700.9,2335.6,2770,2764.2,2784.9,2898.8,2853.4,3022.6,2851.4,2630.8) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2220.6 2371.4 2404.9 2423.8 2489.2 NA [2,] 2161.5 2287.0 2316.1 2520.4 2941.0 NA [3,] 1863.6 2198.2 2368.1 2482.9 2700.9 NA [4,] 1955.1 2330.4 2282.5 2215.9 2335.6 NA [5,] 1907.4 2014.4 2158.6 2441.9 2770.0 NA [6,] 1889.4 2066.1 2174.8 2333.8 2764.2 NA [7,] 2246.3 2355.8 2594.1 2670.2 2784.9 NA [8,] 2213.0 2232.5 2281.4 2431.0 2898.8 NA [9,] 1965.0 2091.7 2547.9 2559.3 2853.4 NA [10,] 2285.6 2376.5 2606.3 2661.4 3022.6 NA [11,] 1983.8 1931.9 2190.8 2404.6 2851.4 NA [12,] 1872.4 2025.7 2262.3 2378.3 2630.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -59.1 -84.4 -88.8 96.6 451.8 NA [2,] -297.9 -88.8 52.0 -37.5 -240.1 NA [3,] 91.5 132.2 -85.6 -267.0 -365.3 NA [4,] -47.7 -316.0 -123.9 226.0 434.4 NA [5,] -18.0 51.7 16.2 -108.1 -5.8 NA [6,] 356.9 289.7 419.3 336.4 20.7 NA [7,] -33.3 -123.3 -312.7 -239.2 113.9 NA [8,] -248.0 -140.8 266.5 128.3 -45.4 NA [9,] 320.6 284.8 58.4 102.1 169.2 NA [10,] -301.8 -444.6 -415.5 -256.8 -171.2 NA [11,] -111.4 93.8 71.5 -26.3 -220.6 NA [12,] 499.0 379.2 161.5 110.9 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/1yhws1229952808.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/2xbe91229952808.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/3o02d1229952808.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/4wuq81229952808.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] [1,] 2371.4 2161.5 1863.6 2215.9 1907.4 1889.4 2246.3 2213.0 1965.0 2285.6 [2,] 2371.4 2287.0 2198.2 2215.9 2014.4 2066.1 2355.8 2232.5 2091.7 2376.5 [3,] 2404.9 2316.1 2368.1 2282.5 2158.6 2174.8 2594.1 2281.4 2547.9 2606.3 [4,] 2423.8 2520.4 2482.9 2330.4 2441.9 2333.8 2670.2 2431.0 2559.3 2661.4 [5,] 2489.2 2520.4 2700.9 2335.6 2770.0 2333.8 2784.9 2431.0 2853.4 3022.6 [,11] [,12] [1,] 1931.9 1872.4 [2,] 1983.8 2025.7 [3,] 2190.8 2262.3 [4,] 2404.6 2378.3 [5,] 2851.4 2630.8 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2367.874 2151.18 2166.932 2201.595 1856.530 1985.644 2371.946 2141.140 [2,] 2441.926 2481.02 2569.268 2363.405 2460.670 2363.956 2816.254 2421.660 [,9] [,10] [,11] [,12] [1,] 2217.495 2404.990 1893.464 2013.154 [2,] 2878.305 2807.610 2488.136 2511.446 $out [1] 2220.6 2941.0 1955.1 2764.2 2898.8 $group [1] 1 2 4 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2371.4, 2371.4, 2404.9, 2423.8, 2489.2, 2161.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5uzxn1229952808.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,] -88.8 -297.9 -365.3 -316.0 -18.0 289.7 -312.7 -248.0 58.4 -444.6 -220.6 [2,] -84.4 -240.1 -267.0 -123.9 -18.0 289.7 -239.2 -140.8 102.1 -415.5 -111.4 [3,] -59.1 -88.8 -85.6 -47.7 -5.8 336.4 -123.3 -45.4 169.2 -301.8 -26.3 [4,] 96.6 -37.5 91.5 226.0 16.2 356.9 -33.3 128.3 284.8 -256.8 71.5 [5,] 96.6 52.0 132.2 434.4 51.7 419.3 113.9 266.5 320.6 -171.2 93.8 [,12] [1,] 110.90 [2,] 136.20 [3,] 270.35 [4,] 439.10 [5,] 499.00 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -186.99414 -231.95665 -338.9152 -294.9385 -29.96563 288.9166 -268.78842 [2,] 68.79414 54.35665 167.7152 199.5385 18.36563 383.8834 22.18842 [,8] [,9] [,10] [,11] [,12] [1,] -235.5454 40.10464 -413.9370 -155.5367 31.059 [2,] 144.7454 298.29536 -189.6630 102.9367 509.641 $out [1] 451.8 -108.1 20.7 $group [1] 1 5 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-88.8000000000002, -84.4000000000001, -59.0999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6eu2n1229952808.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] [1,] 1863.6 1931.90 2158.60 2215.90 2489.20 NA [2,] 1898.4 2045.90 2226.55 2391.45 2665.85 NA [3,] 1974.4 2215.35 2299.30 2436.45 2777.45 NA [4,] 2216.8 2343.10 2476.40 2539.85 2876.10 NA [5,] 2285.6 2376.50 2606.30 2670.20 3022.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1829.176 2079.795 2185.342 2368.764 2681.554 NA [2,] 2119.624 2350.905 2413.258 2504.136 2873.346 NA $out [1] 2335.6 $group [1] 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1863.6, 1898.4, 1974.4, 2216.8, 2285.6, 1931.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7swb91229952808.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,] 2223.90 2158.60 2194.200 [2,] 2252.06 2226.55 2215.075 [3,] 2352.36 2299.30 2328.625 [4,] 2428.27 2476.40 2400.650 [5,] 2590.48 2606.30 2518.950 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2271.989 2185.342 2243.983 [2,] 2432.731 2413.258 2413.267 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2223.9, 2252.06, 2352.36, 2428.27, 2590.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1yhws1229952808.ps tmp/1yhws1229952808.png") > system("convert tmp/2xbe91229952808.ps tmp/2xbe91229952808.png") > system("convert tmp/3o02d1229952808.ps tmp/3o02d1229952808.png") > system("convert tmp/4wuq81229952808.ps tmp/4wuq81229952808.png") > system("convert tmp/5uzxn1229952808.ps tmp/5uzxn1229952808.png") > system("convert tmp/6eu2n1229952808.ps tmp/6eu2n1229952808.png") > system("convert tmp/7swb91229952808.ps tmp/7swb91229952808.png") > > > proc.time() user system elapsed 3.498 2.346 4.287