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(4.43,4.61,4.54,4.2,4.08,3.95,4.19,4.23,3.89,3.92,4.14,4.24,4.08,4.37,4.43,4.3,4.27,4.06,3.96,4.21,4.31,4.35,4.25,4.06,4,3.87,3.71,3.63,3.48,3.6,3.66,3.45,3.3,3.14,3.21,3.12,3.14,3.4,3.42,3.29,3.49,3.52,3.81,4.03,3.98,4.1,3.96,3.83,3.72,3.82,3.76,3.98,4.14,4,4.13,4.28,4.46,4.63,4.49,4.41,4.5,4.39,4.33,4.45,4.17,4.13,4.33,4.47,4.63,4.9) > 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] 70 > (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 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4.43 4.08 4.00 3.14 3.72 4.50 [2,] 4.61 4.37 3.87 3.40 3.82 4.39 [3,] 4.54 4.43 3.71 3.42 3.76 4.33 [4,] 4.20 4.30 3.63 3.29 3.98 4.45 [5,] 4.08 4.27 3.48 3.49 4.14 4.17 [6,] 3.95 4.06 3.60 3.52 4.00 4.13 [7,] 4.19 3.96 3.66 3.81 4.13 4.33 [8,] 4.23 4.21 3.45 4.03 4.28 4.47 [9,] 3.89 4.31 3.30 3.98 4.46 4.63 [10,] 3.92 4.35 3.14 4.10 4.63 4.90 [11,] 4.14 4.25 3.21 3.96 4.49 NA [12,] 4.24 4.06 3.12 3.83 4.41 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.18 0.29 -0.13 0.26 0.10 -0.11 [2,] -0.07 0.06 -0.16 0.02 -0.06 -0.06 [3,] -0.34 -0.13 -0.08 -0.13 0.22 0.12 [4,] -0.12 -0.03 -0.15 0.20 0.16 -0.28 [5,] -0.13 -0.21 0.12 0.03 -0.14 -0.04 [6,] 0.24 -0.10 0.06 0.29 0.13 0.20 [7,] 0.04 0.25 -0.21 0.22 0.15 0.14 [8,] -0.34 0.10 -0.15 -0.05 0.18 0.16 [9,] 0.03 0.04 -0.16 0.12 0.17 0.27 [10,] 0.22 -0.10 0.07 -0.14 -0.14 NA [11,] 0.10 -0.19 -0.09 -0.13 -0.08 NA [12,] -0.16 -0.06 0.02 -0.11 0.09 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/freestat/rcomp/tmp/18zth1228482347.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/freestat/rcomp/tmp/2eh4z1228482347.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/freestat/rcomp/tmp/3vvhg1228482347.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/freestat/rcomp/tmp/4na381228482347.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,] 3.14 3.40 3.420 3.29 3.48 3.520 3.660 4.03 3.300 3.140 3.96 3.83 [2,] 3.72 3.82 3.710 3.63 3.49 3.600 3.810 4.03 3.890 3.920 3.96 3.83 [3,] 4.04 4.12 4.045 4.09 4.11 3.975 4.045 4.22 4.145 4.225 4.14 4.06 [4,] 4.43 4.39 4.430 4.30 4.17 4.060 4.190 4.28 4.460 4.630 4.25 4.24 [5,] 4.50 4.61 4.540 4.45 4.27 4.130 4.330 4.47 4.630 4.900 4.49 4.41 $n [1] 6 6 6 6 6 6 6 6 6 6 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.582027 3.752332 3.580577 3.657828 3.671378 3.678285 3.799888 4.058742 [2,] 4.497973 4.487668 4.509423 4.522172 4.548622 4.271715 4.290112 4.381258 [,9] [,10] [,11] [,12] [1,] 3.777332 3.767027 3.935087 3.770295 [2,] 4.512668 4.682973 4.344913 4.349705 $out [1] 3.45 3.21 3.12 $group [1] 8 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(3.14, 3.72, 4.04, 4.43, 4.5, 3.4, 3.82, 4.12, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5j3zp1228482347.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.13 -0.16 -0.340 -0.280 -0.210 -0.100 -0.210 -0.340 -0.16 -0.14 -0.19 [2,] -0.11 -0.07 -0.130 -0.150 -0.140 0.060 0.040 -0.150 0.03 -0.14 -0.13 [3,] 0.14 -0.06 -0.105 -0.075 -0.085 0.165 0.145 0.025 0.08 -0.10 -0.09 [4,] 0.26 0.02 0.120 0.160 0.030 0.240 0.220 0.160 0.17 0.07 -0.08 [5,] 0.29 0.06 0.220 0.200 0.120 0.290 0.250 0.180 0.27 0.22 -0.08 [,12] [1,] -0.16 [2,] -0.11 [3,] -0.06 [4,] 0.02 [5,] 0.09 $n [1] 6 6 6 6 6 6 6 6 6 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.09866195 -0.118052907 -0.26625807 -0.2749600 -0.19465549 0.04889419 [2,] 0.37866195 -0.001947093 0.05625807 0.1249600 0.02465549 0.28110581 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.02889419 -0.17496 -0.01030452 -0.24838547 -0.12532987 -0.15185767 [2,] 0.26110581 0.22496 0.17030452 0.04838547 -0.05467013 0.03185767 $out [1] 0.1 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.13, -0.110000000000000, 0.14, 0.26, 0.29, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6mcay1228482347.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,] 3.890 3.96 3.120 3.140 3.720 4.13 [2,] 4.015 4.07 3.255 3.410 3.900 4.33 [3,] 4.195 4.26 3.540 3.665 4.135 4.42 [4,] 4.335 4.33 3.685 3.970 4.435 4.50 [5,] 4.610 4.43 4.000 4.100 4.630 4.63 $n [1] 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 4.049046 4.141412 3.343874 3.40958 3.890983 4.335061 [2,] 4.340954 4.378588 3.736126 3.92042 4.379017 4.504939 $out [1] 4.9 $group [1] 6 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(3.89, 4.015, 4.195, 4.335, 4.61, 3.96, 4.07, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7mdu51228482347.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.876667 3.9750 3.866250 [2,] 3.956667 4.0450 4.003750 [3,] 4.011667 4.1000 4.065000 [4,] 4.085833 4.1425 4.138125 [5,] 4.173333 4.2250 4.262500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.952753 4.05553 4.003711 [2,] 4.070580 4.14447 4.126289 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.87666666666667, 3.95666666666667, 4.01166666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18zth1228482347.ps tmp/18zth1228482347.png") > system("convert tmp/2eh4z1228482347.ps tmp/2eh4z1228482347.png") > system("convert tmp/3vvhg1228482347.ps tmp/3vvhg1228482347.png") > system("convert tmp/4na381228482347.ps tmp/4na381228482347.png") > system("convert tmp/5j3zp1228482347.ps tmp/5j3zp1228482347.png") > system("convert tmp/6mcay1228482347.ps tmp/6mcay1228482347.png") > system("convert tmp/7mdu51228482347.ps tmp/7mdu51228482347.png") > > > proc.time() user system elapsed 1.883 1.493 2.326