R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(2.64,2.75,2.7,2.87,3.03,3.14,3.02,2.86,3.07,2.93,2.83,2.72,2.73,2.72,2.77,2.61,2.47,2.3,2.38,2.43,2.39,2.6,2.84,2.87,2.92,3.08,3.33,3.48,3.57,3.66,3.77,3.75,3.75,3.81,3.82,3.89,4.05,4.1,4.07,4.26,4.4,4.61,4.63,4.48,4.46,4.45,4.32,4.52,4.21,3.97,4.12,4.5,4.73,5.26,5.2,4.94,4.95,4.52,3.85,3.41,2.95,2.68,2.53,2.44,2.16,2.2,2.1,2.29,2.03,2.05,1.94) > 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] 71 > (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] 6 6 6 6 6 6 6 6 6 6 6 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.64 2.73 2.92 4.05 4.21 2.95 [2,] 2.75 2.72 3.08 4.10 3.97 2.68 [3,] 2.70 2.77 3.33 4.07 4.12 2.53 [4,] 2.87 2.61 3.48 4.26 4.50 2.44 [5,] 3.03 2.47 3.57 4.40 4.73 2.16 [6,] 3.14 2.30 3.66 4.61 5.26 2.20 [7,] 3.02 2.38 3.77 4.63 5.20 2.10 [8,] 2.86 2.43 3.75 4.48 4.94 2.29 [9,] 3.07 2.39 3.75 4.46 4.95 2.03 [10,] 2.93 2.60 3.81 4.45 4.52 2.05 [11,] 2.83 2.84 3.82 4.32 3.85 1.94 [12,] 2.72 2.87 3.89 4.52 3.41 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.11 -0.01 0.16 0.05 -0.24 -0.27 [2,] -0.05 0.05 0.25 -0.03 0.15 -0.15 [3,] 0.17 -0.16 0.15 0.19 0.38 -0.09 [4,] 0.16 -0.14 0.09 0.14 0.23 -0.28 [5,] 0.11 -0.17 0.09 0.21 0.53 0.04 [6,] -0.12 0.08 0.11 0.02 -0.06 -0.10 [7,] -0.16 0.05 -0.02 -0.15 -0.26 0.19 [8,] 0.21 -0.04 0.00 -0.02 0.01 -0.26 [9,] -0.14 0.21 0.06 -0.01 -0.43 0.02 [10,] -0.10 0.24 0.01 -0.13 -0.67 -0.11 [11,] -0.11 0.03 0.07 0.20 -0.44 NA [12,] 0.01 0.05 0.16 -0.31 -0.46 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/1uzgu1260625244.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/2glji1260625244.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/3cbmu1260625244.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/4wu5s1260625244.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,] 2.640 2.680 2.53 2.440 2.16 2.20 2.100 2.290 2.03 2.05 1.94 2.72 [2,] 2.730 2.720 2.70 2.610 2.47 2.30 2.380 2.430 2.39 2.60 2.83 2.87 [3,] 2.935 2.915 3.05 3.175 3.30 3.40 3.395 3.305 3.41 3.37 3.33 3.41 [4,] 4.050 3.970 4.07 4.260 4.40 4.61 4.630 4.480 4.46 4.45 3.85 3.89 [5,] 4.210 4.100 4.12 4.500 4.73 5.26 5.200 4.940 4.95 4.52 4.32 4.52 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.083557 2.108710 2.166306 2.110697 2.055088 1.909975 1.943677 1.982684 [2,] 3.786443 3.721290 3.933694 4.239303 4.544912 4.890025 4.846323 4.627316 [,9] [,10] [,11] [,12] [1,] 2.074783 2.176690 2.672067 2.689271 [2,] 4.745217 4.563310 3.987933 4.130729 $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(2.64, 2.73, 2.935, 4.05, 4.21, 2.68, 2.72, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5basn1260625244.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,] -0.27 -0.15 -0.16 -0.280 -0.17 -0.12 -0.260 -0.04 -0.430 -0.130 -0.11 [2,] -0.24 -0.05 -0.09 -0.140 0.04 -0.10 -0.160 -0.04 -0.140 -0.130 -0.11 [3,] 0.02 0.01 0.16 0.115 0.10 -0.02 -0.085 -0.01 0.005 -0.105 0.03 [4,] 0.11 0.15 0.19 0.160 0.21 0.08 0.050 0.01 0.060 0.010 0.07 [5,] 0.16 0.25 0.38 0.230 0.21 0.11 0.190 0.01 0.210 0.010 0.20 [,12] [1,] -0.46 [2,] -0.31 [3,] 0.01 [4,] 0.05 [5,] 0.16 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2057613 -0.1190065 -0.02060904 -0.07850969 -0.00965549 -0.13610581 [2,] 0.2457613 0.1390065 0.34060904 0.30850969 0.20965549 0.09610581 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.22045678 -0.04225161 -0.1240065 -0.19530452 -0.09718755 -0.2443751 [2,] 0.05045678 0.02225161 0.1340065 -0.01469548 0.15718755 0.2643751 $out [1] 0.53 0.21 -0.26 0.24 -0.67 -0.44 $group [1] 5 8 8 10 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.27, -0.24, 0.02, 0.110000000000000, 0.16, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/63nw81260625244.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,] 2.640 2.300 2.920 4.050 3.410 1.940 [2,] 2.735 2.410 3.405 4.180 4.045 2.075 [3,] 2.865 2.605 3.705 4.425 4.510 2.200 [4,] 3.025 2.750 3.790 4.500 4.945 2.485 [5,] 3.140 2.870 3.890 4.630 5.260 2.950 $n [1] 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.732729 2.449924 3.529399 4.279046 4.099504 2.004681 [2,] 2.997271 2.760076 3.880601 4.570954 4.920496 2.395319 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(2.64, 2.735, 2.865, 3.025, 3.14, 2.3, 2.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7u85r1260625244.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,] 3.216667 2.9150 3.237500 [2,] 3.260000 3.1125 3.319375 [3,] 3.393333 3.3175 3.390625 [4,] 3.470167 3.3975 3.431250 [5,] 3.528333 3.4100 3.486250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.297475 3.187510 3.339598 [2,] 3.489192 3.447490 3.441652 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.21666666666667, 3.26, 3.39333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1uzgu1260625244.ps tmp/1uzgu1260625244.png") > system("convert tmp/2glji1260625244.ps tmp/2glji1260625244.png") > system("convert tmp/3cbmu1260625244.ps tmp/3cbmu1260625244.png") > system("convert tmp/4wu5s1260625244.ps tmp/4wu5s1260625244.png") > system("convert tmp/5basn1260625244.ps tmp/5basn1260625244.png") > system("convert tmp/63nw81260625244.ps tmp/63nw81260625244.png") > system("convert tmp/7u85r1260625244.ps tmp/7u85r1260625244.png") > > > proc.time() user system elapsed 1.185 0.932 1.505