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(478.34,485.7,485.75,485.85,485.84,485.85,485.84,486,488.79,489.71,489.71,489.71,498.1,498.76,498.88,498.88,498.88,498.88,499.48,501.21,502.05,502.05,502.05,504.1,506.81,516.88,520.43,520.68,520.68,520.68,521.03,521.25,521.25,521.25,521.65,521.65,522.77,518.72,519.27,519.38,521.29,521.29,521.29,523.47,523.86,524.14,524.14,524.14,534.6,534.99,535.39,535.39,535.39,535.39,535.39,535.64,536.08,537.8,537.8,537.8,537.85,544.39,545.15,544.65,544.65,544.65,545.73,548.94,550.94,551.22,551.22,551.22) > 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,] 478.34 498.10 506.81 522.77 534.60 537.85 NA [2,] 485.70 498.76 516.88 518.72 534.99 544.39 NA [3,] 485.75 498.88 520.43 519.27 535.39 545.15 NA [4,] 485.85 498.88 520.68 519.38 535.39 544.65 NA [5,] 485.84 498.88 520.68 521.29 535.39 544.65 NA [6,] 485.85 498.88 520.68 521.29 535.39 544.65 NA [7,] 485.84 499.48 521.03 521.29 535.39 545.73 NA [8,] 486.00 501.21 521.25 523.47 535.64 548.94 NA [9,] 488.79 502.05 521.25 523.86 536.08 550.94 NA [10,] 489.71 502.05 521.25 524.14 537.80 551.22 NA [11,] 489.71 502.05 521.65 524.14 537.80 551.22 NA [12,] 489.71 504.10 521.65 524.14 537.80 551.22 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7.36 0.66 10.07 -4.05 0.39 6.54 NA [2,] 0.05 0.12 3.55 0.55 0.40 0.76 NA [3,] 0.10 0.00 0.25 0.11 0.00 -0.50 NA [4,] -0.01 0.00 0.00 1.91 0.00 0.00 NA [5,] 0.01 0.00 0.00 0.00 0.00 0.00 NA [6,] -0.01 0.60 0.35 0.00 0.00 1.08 NA [7,] 0.16 1.73 0.22 2.18 0.25 3.21 NA [8,] 2.79 0.84 0.00 0.39 0.44 2.00 NA [9,] 0.92 0.00 0.00 0.28 1.72 0.28 NA [10,] 0.00 0.00 0.40 0.00 0.00 0.00 NA [11,] 0.00 2.05 0.00 0.00 0.00 0.00 NA [12,] 8.39 2.71 1.12 10.46 0.05 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/1gr6h1319650771.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/2pmnn1319650771.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/3tjjw1319650771.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/4ivhe1319650771.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] [,10] [1,] 478.34 485.70 485.75 485.85 485.840 485.850 485.84 486.00 488.790 489.710 [2,] 498.10 498.76 498.88 498.88 498.880 498.880 499.48 501.21 502.050 502.050 [3,] 514.79 517.80 519.85 520.03 520.985 520.985 521.16 522.36 522.555 522.695 [4,] 534.60 534.99 535.39 535.39 535.390 535.390 535.39 535.64 536.080 537.800 [5,] 537.85 544.39 545.15 544.65 544.650 544.650 545.73 548.94 550.940 551.220 [,11] [,12] [1,] 489.710 489.710 [2,] 502.050 504.100 [3,] 522.895 522.895 [4,] 537.800 537.800 [5,] 551.220 551.220 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 491.2463 494.4305 496.2999 496.4799 497.4349 497.4349 497.9969 500.1515 [2,] 538.3337 541.1695 543.4001 543.5801 544.5351 544.5351 544.3231 544.5685 [,9] [,10] [,11] [,12] [1,] 500.6046 499.6351 499.8351 501.1574 [2,] 544.5054 545.7549 545.9549 544.6326 $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(478.34, 498.1, 514.79, 534.6, 537.85, 485.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5fi8z1319650771.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] [,11] [,12] [1,] -4.05 0.050 0.00 0 0 -0.010 0.16 0.00 0.00 0 0 0.05 [2,] 0.39 0.120 0.00 0 0 0.000 0.22 0.39 0.00 0 0 1.12 [3,] 3.60 0.475 0.05 0 0 0.175 0.99 0.64 0.28 0 0 2.71 [4,] 7.36 0.760 0.11 0 0 0.600 2.18 2.00 0.92 0 0 8.39 [5,] 10.07 0.760 0.25 0 0 1.080 3.21 2.79 1.72 0 0 10.46 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8958751 0.06217933 -0.02095355 0 0 -0.2120194 -0.2742633 [2,] 8.0958751 0.88782067 0.12095355 0 0 0.5620194 2.2542633 [,8] [,9] [,10] [,11] [,12] [1,] -0.398502 -0.3134297 0 0 -2.426964 [2,] 1.678502 0.8734297 0 0 7.846964 $out [1] 3.55 -0.50 -0.01 1.91 0.01 0.40 2.05 $group [1] 2 3 4 4 5 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4.04999999999995, 0.389999999999986, 3.59999999999997, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6prid1319650771.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,] 485.700 498.10 520.430 518.720 534.60 537.85 NA [2,] 485.795 498.88 520.555 520.335 535.39 544.65 NA [3,] 485.850 499.18 520.855 522.030 535.39 545.44 NA [4,] 489.250 502.05 521.250 524.000 536.94 551.08 NA [5,] 489.710 504.10 521.650 524.140 537.80 551.22 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 484.2742 497.7341 520.538 520.3584 534.683 542.5072 NA [2,] 487.4258 500.6259 521.172 523.7016 536.097 548.3728 NA $out [1] 478.34 506.81 516.88 $group [1] 1 3 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(485.7, 485.795, 485.85, 489.25, 489.71, 498.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ss071319650771.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,] 513.0783 517.8000 515.9600 [2,] 517.4750 519.9400 517.8363 [3,] 517.9583 521.0725 518.2319 [4,] 520.7617 522.6250 520.2775 [5,] 521.4367 522.8950 521.4362 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 516.4593 519.8479 517.1184 [2,] 519.4574 522.2971 519.3453 $out [1] 514.79 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(513.078333333333, 517.475, 517.958333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1gr6h1319650771.ps tmp/1gr6h1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/2pmnn1319650771.ps tmp/2pmnn1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/3tjjw1319650771.ps tmp/3tjjw1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/4ivhe1319650771.ps tmp/4ivhe1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/5fi8z1319650771.ps tmp/5fi8z1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/6prid1319650771.ps tmp/6prid1319650771.png",intern=TRUE)) character(0) > try(system("convert tmp/7ss071319650771.ps tmp/7ss071319650771.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.603 0.324 1.955