R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(8,8,8.2,8.5,8.7,8.7,8,8,8.3,8.5,8.7,8.6,8.3,7.9,7.9,8.1,8.3,8.1,7.4,7.3,7.7,8,8,7.7,6.9,6.6,6.9,7.5,7.9,7.7,6.5,6.1,6.4,6.8,7.1,7.3,7.2,7,7,7,7.3,7.5,7.2,7.7,8,7.9,8,8,7.9,7.9,8,8.1,8.1,8.2,8,8.3,8.5,8.6,8.7,8.7,8.5,8.4,8.5,8.7,8.7,8.6,7.9,8.1,8.2,8.5,8.6,8.5) > 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,] 8.0 8.3 6.9 7.2 7.9 8.5 NA [2,] 8.0 7.9 6.6 7.0 7.9 8.4 NA [3,] 8.2 7.9 6.9 7.0 8.0 8.5 NA [4,] 8.5 8.1 7.5 7.0 8.1 8.7 NA [5,] 8.7 8.3 7.9 7.3 8.1 8.7 NA [6,] 8.7 8.1 7.7 7.5 8.2 8.6 NA [7,] 8.0 7.4 6.5 7.2 8.0 7.9 NA [8,] 8.0 7.3 6.1 7.7 8.3 8.1 NA [9,] 8.3 7.7 6.4 8.0 8.5 8.2 NA [10,] 8.5 8.0 6.8 7.9 8.6 8.5 NA [11,] 8.7 8.0 7.1 8.0 8.7 8.6 NA [12,] 8.6 7.7 7.3 8.0 8.7 8.5 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.0 -0.4 -0.3 -0.2 0.0 -0.1 NA [2,] 0.2 0.0 0.3 0.0 0.1 0.1 NA [3,] 0.3 0.2 0.6 0.0 0.1 0.2 NA [4,] 0.2 0.2 0.4 0.3 0.0 0.0 NA [5,] 0.0 -0.2 -0.2 0.2 0.1 -0.1 NA [6,] -0.7 -0.7 -1.2 -0.3 -0.2 -0.7 NA [7,] 0.0 -0.1 -0.4 0.5 0.3 0.2 NA [8,] 0.3 0.4 0.3 0.3 0.2 0.1 NA [9,] 0.2 0.3 0.4 -0.1 0.1 0.3 NA [10,] 0.2 0.0 0.3 0.1 0.1 0.1 NA [11,] -0.1 -0.3 0.2 0.0 0.0 -0.1 NA [12,] -0.3 -0.8 -0.1 -0.1 -0.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/rcomp/tmp/1z7bu1301922189.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/www/rcomp/tmp/289ft1301922189.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/www/rcomp/tmp/34pw91301922189.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/www/rcomp/tmp/4yd4e1301922189.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] [,11] [,12] [1,] 6.90 6.6 6.90 7.0 7.3 7.50 6.50 6.10 7.7 7.90 7.1 7.30 [2,] 7.20 7.0 7.00 7.5 7.9 7.70 7.20 7.30 7.7 7.90 8.0 7.70 [3,] 7.95 7.9 7.95 8.1 8.2 8.15 7.65 7.85 8.1 8.25 8.3 8.25 [4,] 8.30 8.0 8.20 8.5 8.7 8.60 8.00 8.10 8.3 8.50 8.7 8.60 [5,] 8.50 8.4 8.50 8.7 8.7 8.70 8.00 8.30 8.5 8.60 8.7 8.70 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.240464 7.254968 7.175961 7.454968 7.683974 7.569471 7.133974 7.333974 [2,] 8.659536 8.545032 8.724039 8.745032 8.716026 8.730529 8.166026 8.366026 [,9] [,10] [,11] [,12] [1,] 7.71298 7.86298 7.848477 7.669471 [2,] 8.48702 8.63702 8.751523 8.830529 $out [1] 6.4 6.8 $group [1] 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(6.9, 7.2, 7.95, 8.3, 8.5, 6.6, 7, 7.9, 8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5sfs11301922189.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,] -0.40 0.0 0.0 0.0 -0.20 -1.2 -0.4 0.1 -0.10 0.0 -0.10 -0.3 [2,] -0.30 0.0 0.1 0.0 -0.20 -0.7 -0.1 0.2 0.10 0.1 -0.10 -0.3 [3,] -0.15 0.1 0.2 0.2 -0.05 -0.7 0.1 0.3 0.25 0.1 -0.05 -0.2 [4,] 0.00 0.2 0.3 0.3 0.10 -0.3 0.3 0.3 0.30 0.2 0.00 -0.1 [5,] 0.00 0.3 0.6 0.4 0.20 -0.2 0.5 0.4 0.40 0.3 0.00 -0.1 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.34350969 -0.02900646 0.07099354 0.00649031 -0.2435097 -0.9580129 [2,] 0.04350969 0.22900646 0.32900646 0.39350969 0.1435097 -0.4419871 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1580129 0.2354968 0.1209935 0.03549677 -0.11450323 -0.3413195 [2,] 0.3580129 0.3645032 0.3790065 0.16450323 0.01450323 -0.0586805 $out [1] -0.3 0.2 -0.8 $group [1] 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.4, -0.300000000000001, -0.15, 0, 0, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ifca1301922189.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,] 8.00 7.30 6.10 7.00 7.90 7.9 NA [2,] 8.00 7.70 6.55 7.10 8.00 8.3 NA [3,] 8.40 7.95 6.90 7.40 8.15 8.5 NA [4,] 8.65 8.10 7.40 7.95 8.55 8.6 NA [5,] 8.70 8.30 7.90 8.00 8.70 8.7 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 8.10353 7.767557 6.512309 7.012309 7.899141 8.363168 NA [2,] 8.69647 8.132443 7.287691 7.787691 8.400859 8.636832 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(8, 8, 8.4, 8.65, 8.7, 7.3, 7.7, 7.95, 8.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7tkvz1301922189.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,] 7.500000 7.650 7.60000 [2,] 7.691667 7.925 7.71250 [3,] 7.916667 8.100 8.02500 [4,] 8.133333 8.225 8.19375 [5,] 8.183333 8.300 8.33750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.715220 7.963168 7.805499 [2,] 8.118114 8.236832 8.244501 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.5, 7.69166666666667, 7.91666666666667, 8.13333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1z7bu1301922189.ps tmp/1z7bu1301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/289ft1301922189.ps tmp/289ft1301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/34pw91301922189.ps tmp/34pw91301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/4yd4e1301922189.ps tmp/4yd4e1301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/5sfs11301922189.ps tmp/5sfs11301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/6ifca1301922189.ps tmp/6ifca1301922189.png",intern=TRUE)) character(0) > try(system("convert tmp/7tkvz1301922189.ps tmp/7tkvz1301922189.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.610 1.080 2.693