R version 2.8.0 (2008-10-20) 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(15,13,8,7,3,3,4,4,0,-4,-14,-18,-8,-1,1,2,0,1,0,-1,-3,-3,-3,-4,-8,-9,-13,-18,-11,-9,-10,-13,-11,-5,-15,-6,-6,-3,-1,-3,-4,-6,0,-4,-2,-2,-6,-7,-6,-6,-3,-2,-5,-11,-11,-11,-10,-14,-8,-9,-5,-1,-2,-5,-4,-6,-2,-2,-2,-2,2,1,-8,-1,1,-1,2,2,1,-1,-2,-2,-1,-8,-4,-6,-3,-3,-7,-9,-11,-13,-11,-9,-17,-22,-25) > 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] 97 > (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 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 15 -8 -8 -6 -6 -5 -8 -4 -25 [2,] 13 -1 -9 -3 -6 -1 -1 -6 NA [3,] 8 1 -13 -1 -3 -2 1 -3 NA [4,] 7 2 -18 -3 -2 -5 -1 -3 NA [5,] 3 0 -11 -4 -5 -4 2 -7 NA [6,] 3 1 -9 -6 -11 -6 2 -9 NA [7,] 4 0 -10 0 -11 -2 1 -11 NA [8,] 4 -1 -13 -4 -11 -2 -1 -13 NA [9,] 0 -3 -11 -2 -10 -2 -2 -11 NA [10,] -4 -3 -5 -2 -14 -2 -2 -9 NA [11,] -14 -3 -15 -6 -8 2 -1 -17 NA [12,] -18 -4 -6 -7 -9 1 -8 -22 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -2 7 -1 3 0 4 7 -2 NA [2,] -5 2 -4 2 3 -1 2 3 NA [3,] -1 1 -5 -2 1 -3 -2 0 NA [4,] -4 -2 7 -1 -3 1 3 -4 NA [5,] 0 1 2 -2 -6 -2 0 -2 NA [6,] 1 -1 -1 6 0 4 -1 -2 NA [7,] 0 -1 -3 -4 0 0 -2 -2 NA [8,] -4 -2 2 2 1 0 -1 2 NA [9,] -4 0 6 0 -4 0 0 2 NA [10,] -10 0 -10 -4 6 4 1 -8 NA [11,] -4 -1 9 -1 -1 -1 -7 -5 NA [12,] 10 -4 0 1 4 -9 4 -3 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/1bjyg1229933566.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/2wjz01229933566.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/3felw1229933567.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/49k8w1229933567.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] [,11] [,12] [1,] -8 -9 -3.0 -5.0 -11 -11.0 -11.0 -13 -11.0 -14.0 -17.0 -22.0 [2,] -8 -6 -3.0 -4.0 -6 -9.0 -10.5 -12 -10.5 -7.0 -14.5 -13.5 [3,] -6 -2 -1.5 -2.5 -4 -6.0 -1.0 -3 -2.5 -3.5 -7.0 -7.5 [4,] -5 -1 1.0 0.5 1 1.5 0.5 -1 -2.0 -2.0 -2.0 -5.0 [5,] -4 -1 1.0 7.0 3 3.0 4.0 4 0.0 -2.0 2.0 1.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.58 -4.7930718 -3.7344574 -5.01376461 -7.9103005 -11.8654507 -7.144758 [2,] -4.42 0.7930718 0.7344574 0.01376461 -0.0896995 -0.1345493 5.144758 [,8] [,9] [,10] [,11] [,12] [1,] -9.144758 -7.248222 -6.2930718 -13.98267946 -12.248222 [2,] 3.144758 2.248222 -0.7069282 -0.01732054 -2.751778 $out [1] 15 -25 13 8 -13 -18 $group [1] 1 1 2 3 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-8, -8, -6, -5, -4, -9, -6, -2, -1, -1, -3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55kp21229933567.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] [,12] [1,] -2.0 -5.0 -5.0 -4.0 -2.0 -2.0 -4.0 -4.0 -4 -10.0 -7.0 -9.0 [2,] -1.5 -2.5 -2.5 -3.5 -2.0 -1.0 -2.5 -1.5 -2 -9.0 -4.5 -3.5 [3,] 1.5 2.0 -1.5 -1.5 -1.0 -0.5 -1.5 0.5 0 -2.0 -1.0 0.5 [4,] 5.5 2.5 0.5 2.0 0.5 2.5 0.0 2.0 1 2.5 -1.0 4.0 [5,] 7.0 3.0 1.0 7.0 2.0 6.0 0.0 2.0 2 6.0 -1.0 10.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.410300 -0.7930718 -3.1758431 -4.572379 -2.3965359 -2.455150 -2.8965359 [2,] 5.410300 4.7930718 0.1758431 1.572379 0.3965359 1.455150 -0.1034641 [,8] [,9] [,10] [,11] [,12] [1,] -1.455150 -1.675843 -8.424065 -2.9551502 -3.689608 [2,] 2.455150 1.675843 4.424065 0.9551502 4.689608 $out [1] -6 6 9 $group [1] 5 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2, -1.5, 1.5, 5.5, 7, -5, -2.5, 2, 2.5, 3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6fcun1229933567.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] [,9] [1,] -14.0 -8.0 -18.0 -7.0 -14.0 -6.0 -2 -22 -25 [2,] -2.0 -3.0 -13.0 -6.0 -11.0 -4.5 -2 -12 -25 [3,] 3.5 -1.0 -10.5 -3.5 -8.5 -2.0 -1 -9 -25 [4,] 7.5 0.5 -8.5 -2.0 -5.5 -1.5 1 -5 -25 [5,] 15.0 2.0 -5.0 0.0 -2.0 2.0 2 -3 -25 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.8330138 -2.5963735 -12.55248 -5.324427 -11.008587 -3.3683201 -2.3683201 [2,] 7.8330138 0.5963735 -8.44752 -1.675573 -5.991413 -0.6316799 0.3683201 [,8] [,9] [1,] -12.192747 -25 [2,] -5.807253 -25 $out [1] -18 -8 -8 $group [1] 1 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(-14, -2, 3.5, 7.5, 15, -8, -3, -1, 0.5, 2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/77nle1229933567.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,] -9.125000 -7.50 -8.375 [2,] -5.618056 -6.00 -6.375 [3,] -4.750000 -3.25 -4.500 [4,] -3.062500 -2.25 -3.000 [5,] -1.500000 -1.00 -1.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -5.915606 -4.960400 -6.03936 [2,] -3.584394 -1.539600 -2.96064 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-9.125, -5.61805555555556, -4.75, -3.0625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1bjyg1229933566.ps tmp/1bjyg1229933566.png") > system("convert tmp/2wjz01229933566.ps tmp/2wjz01229933566.png") > system("convert tmp/3felw1229933567.ps tmp/3felw1229933567.png") > system("convert tmp/49k8w1229933567.ps tmp/49k8w1229933567.png") > system("convert tmp/55kp21229933567.ps tmp/55kp21229933567.png") > system("convert tmp/6fcun1229933567.ps tmp/6fcun1229933567.png") > system("convert tmp/77nle1229933567.ps tmp/77nle1229933567.png") > > > proc.time() user system elapsed 1.214 0.940 1.695