R version 2.6.1 (2007-11-26) Copyright (C) 2007 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(7.4,7.2,7.0,6.6,6.4,6.4,6.8,7.3,7.0,7.0,6.7,6.7,6.3,6.2,6.0,6.3,6.2,6.1,6.2,6.6,6.6,7.8,7.4,7.4,7.5,7.4,7.4,7.0,6.9,6.9,7.6,7.7,7.6,8.2,8.0,8.1,8.3,8.2,8.1,7.7,7.6,7.7,8.2,8.4,8.4,8.6,8.4,8.5,8.7,8.7,8.6,7.4,7.3,7.4,9.0,9.2,9.2,8.5,8.3,8.3,8.6,8.6,8.5,8.1,8.1,8.0,8.6,8.7,8.7,8.6,8.4,8.4,8.7,8.7,8.5,8.3,8.3,8.3,8.1,8.2,8.1,8.1,7.9,7.7,8.1,8.0,7.7,7.8,7.6,7.4,7.7,7.8,7.5,7.2) > 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] 94 > (np <- floor(n / par1)) [1] 7 > 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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r.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/1b7zw1198157273.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/2oa1f1198157273.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/3dxbe1198157273.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/40fum1198157273.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,] 6.30 6.20 6.0 6.30 6.20 6.10 6.2 6.60 6.60 7.00 6.70 6.70 [2,] 7.45 7.30 7.2 6.80 6.65 6.65 7.2 7.50 7.25 7.50 7.65 7.55 [3,] 8.20 8.10 7.9 7.55 7.45 7.40 7.9 8.00 7.85 8.15 8.00 8.10 [4,] 8.65 8.65 8.5 7.95 7.85 7.85 8.4 8.55 8.55 8.55 8.35 8.35 [5,] 8.70 8.70 8.6 8.30 8.30 8.30 9.0 9.20 9.20 8.60 8.40 8.50 $n [1] 8 8 8 8 8 8 8 8 8 8 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.529663 7.34587 7.173801 6.907593 6.779663 6.729663 7.229663 7.413455 [2,] 8.870337 8.85413 8.626199 8.192407 8.120337 8.070337 8.570337 8.586545 [,9] [,10] [,11] [,12] [1,] 7.123801 7.563455 7.581971 7.622253 [2,] 8.576199 8.736545 8.418029 8.577747 $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(6.3, 7.45, 8.2, 8.65, 8.7, 6.2, 7.3, 8.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ifgm1198157273.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,] -0.2 -0.30 -0.40 -0.20 -0.20 -0.20 0.10 -0.30 -0.7 -0.30 0.00 0.10 [2,] -0.1 -0.20 -0.40 -0.15 -0.10 0.20 0.10 -0.20 -0.2 -0.25 0.00 0.15 [3,] -0.1 -0.15 -0.40 -0.10 0.00 0.45 0.15 -0.05 0.0 -0.20 0.00 0.20 [4,] 0.0 -0.10 -0.05 -0.05 0.05 0.65 0.30 0.00 0.4 -0.20 0.05 0.30 [5,] 0.0 0.00 0.30 0.00 0.10 0.70 0.50 0.00 1.2 -0.20 0.10 0.40 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.15586144 -0.20586144 -0.5955150 -0.15586144 -0.08379215 0.1986235 [2,] -0.04413856 -0.09413856 -0.2044850 -0.04413856 0.08379215 0.7013765 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.03827713 -0.16172287 -0.3351686 -0.2298592 -0.02985919 0.1104224 [2,] 0.26172287 0.06172287 0.3351686 -0.1701408 0.02985919 0.2895776 $out [1] -1.2 1.6 -0.4 -0.2 -0.4 $group [1] 3 6 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.2, -0.100000000000001, -0.0999999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lrff1198157273.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,] 6.40 6.0 6.90 7.60 7.30 8.00 7.70 7.2 [2,] 6.65 6.2 7.20 7.90 7.85 8.25 8.10 7.5 [3,] 6.90 6.3 7.55 8.25 8.55 8.55 8.25 7.7 [4,] 7.10 7.0 7.85 8.40 8.85 8.60 8.40 7.8 [5,] 7.40 7.8 8.20 8.60 9.20 8.70 8.70 8.1 $n [1] 12 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.694752 5.935115 7.25353 8.021947 8.093893 8.390363 8.113168 7.550108 [2,] 7.105248 6.664885 7.84647 8.478053 9.006107 8.709637 8.386832 7.849892 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(6.4, 6.65, 6.9, 7.1, 7.4, 6, 6.2, 6.3, 7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7npkb1198157273.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,] 7.275000 7.40 7.25000 [2,] 7.562500 7.70 7.61875 [3,] 7.871429 7.95 7.93750 [4,] 7.918750 8.10 8.01875 [5,] 8.000000 8.20 8.08750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.708941 7.767557 7.755057 [2,] 8.033917 8.132443 8.119943 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.275, 7.5625, 7.87142857142857, 7.91875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1b7zw1198157273.ps tmp/1b7zw1198157273.png") > system("convert tmp/2oa1f1198157273.ps tmp/2oa1f1198157273.png") > system("convert tmp/3dxbe1198157273.ps tmp/3dxbe1198157273.png") > system("convert tmp/40fum1198157273.ps tmp/40fum1198157273.png") > system("convert tmp/5ifgm1198157273.ps tmp/5ifgm1198157273.png") > system("convert tmp/6lrff1198157273.ps tmp/6lrff1198157273.png") > system("convert tmp/7npkb1198157273.ps tmp/7npkb1198157273.png") > > > proc.time() user system elapsed 2.549 1.567 2.801