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(3.65,3.59,3.31,3.89,4.31,4.35,4.11,3.90,3.75,3.75,3.88,3.93,3.97,3.97,4.33,4.16,4.93,3.86,4.06,4.18,4.08,4.38,4.48,4.41,4.37,4.56,4.71,4.94,5.03,5.08,5.05,4.83,4.68,4.69,4.58,4.54,4.75,4.71,4.50,4.62,4.69,5.05,4.93,4.53,4.33,4.33,3.87,3.74,3.31,3.21,2.93,3.19,3.46,3.73,3.60,3.46,3.25,3.19,2.82,1.89,1.98,2.30,2.42,2.47,2.81,3.37,3.14,3.21,3.02,2.96,2.92,3.07) > 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,] 3.65 3.97 4.37 4.75 3.31 1.98 NA [2,] 3.59 3.97 4.56 4.71 3.21 2.30 NA [3,] 3.31 4.33 4.71 4.50 2.93 2.42 NA [4,] 3.89 4.16 4.94 4.62 3.19 2.47 NA [5,] 4.31 4.93 5.03 4.69 3.46 2.81 NA [6,] 4.35 3.86 5.08 5.05 3.73 3.37 NA [7,] 4.11 4.06 5.05 4.93 3.60 3.14 NA [8,] 3.90 4.18 4.83 4.53 3.46 3.21 NA [9,] 3.75 4.08 4.68 4.33 3.25 3.02 NA [10,] 3.75 4.38 4.69 4.33 3.19 2.96 NA [11,] 3.88 4.48 4.58 3.87 2.82 2.92 NA [12,] 3.93 4.41 4.54 3.74 1.89 3.07 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.06 0.00 0.19 -0.04 -0.10 0.32 NA [2,] -0.28 0.36 0.15 -0.21 -0.28 0.12 NA [3,] 0.58 -0.17 0.23 0.12 0.26 0.05 NA [4,] 0.42 0.77 0.09 0.07 0.27 0.34 NA [5,] 0.04 -1.07 0.05 0.36 0.27 0.56 NA [6,] -0.24 0.20 -0.03 -0.12 -0.13 -0.23 NA [7,] -0.21 0.12 -0.22 -0.40 -0.14 0.07 NA [8,] -0.15 -0.10 -0.15 -0.20 -0.21 -0.19 NA [9,] 0.00 0.30 0.01 0.00 -0.06 -0.06 NA [10,] 0.13 0.10 -0.11 -0.46 -0.37 -0.04 NA [11,] 0.05 -0.07 -0.04 -0.13 -0.93 0.15 NA [12,] 0.04 -0.04 0.21 -0.43 0.09 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/html/rcomp/tmp/1maxi1289819372.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/2e2w31289819372.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/3e2w31289819372.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/4e2w31289819372.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,] 1.98 2.30 2.42 2.470 2.81 3.370 3.140 3.21 3.020 2.96 2.820 1.890 [2,] 3.31 3.21 2.93 3.190 3.46 3.730 3.600 3.46 3.250 3.19 2.920 3.070 [3,] 3.81 3.78 3.82 4.025 4.50 4.105 4.085 4.04 3.915 4.04 3.875 3.835 [4,] 4.37 4.56 4.50 4.620 4.93 5.050 4.930 4.53 4.330 4.38 4.480 4.410 [5,] 4.75 4.71 4.71 4.940 5.03 5.080 5.050 4.83 4.680 4.69 4.580 4.540 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.126266 2.909206 2.807299 3.102604 3.551803 3.253557 3.227107 3.349815 [2,] 4.493734 4.650794 4.832701 4.947396 5.448197 4.956443 4.942893 4.730185 [,9] [,10] [,11] [,12] [1,] 3.218365 3.272412 2.868750 2.970657 [2,] 4.611635 4.807588 4.881250 4.699343 $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(1.98, 3.31, 3.81, 4.37, 4.75, 2.3, 3.21, 3.78, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57bv61289819372.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.10 -0.280 -0.170 0.070 0.04 -0.240 -0.400 -0.21 -0.06 -0.460 -0.130 [2,] -0.06 -0.280 0.050 0.090 0.04 -0.230 -0.220 -0.20 -0.06 -0.370 -0.130 [3,] -0.02 -0.045 0.175 0.305 0.16 -0.125 -0.175 -0.17 0.00 -0.075 -0.055 [4,] 0.19 0.150 0.260 0.420 0.36 -0.030 0.070 -0.15 0.01 0.100 0.050 [5,] 0.32 0.360 0.260 0.770 0.56 0.200 0.120 -0.10 0.01 0.130 0.150 [,12] [1,] -0.04 [2,] -0.04 [3,] 0.04 [4,] 0.09 [5,] 0.21 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.1812581 -0.3223639 0.03954322 0.09213934 -0.04641034 -0.25400646 [2,] 0.1412581 0.2323639 0.31045678 0.51786066 0.36641034 0.00400646 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.36205937 -0.2022516 -0.04515226 -0.3781652 -0.17110581 -0.05185767 [2,] 0.01205937 -0.1377484 0.04515226 0.2281652 0.06110581 0.13185767 $out [1] 0.58 -1.07 0.30 -0.93 -0.43 $group [1] 3 5 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.1, -0.06, -0.02, 0.190000000000000, 0.32, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/67bv61289819372.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] [1,] 3.310 3.860 4.370 3.740 2.82 1.980 NA [2,] 3.700 4.015 4.570 4.330 3.06 2.445 NA [3,] 3.885 4.170 4.700 4.575 3.23 2.940 NA [4,] 4.020 4.395 4.985 4.730 3.46 3.105 NA [5,] 4.350 4.930 5.080 5.050 3.73 3.370 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.739046 3.996679 4.510716 4.392557 3.047557 2.638970 NA [2,] 4.030954 4.343321 4.889284 4.757443 3.412443 3.241030 NA $out [1] 1.89 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(3.31, 3.7, 3.885, 4.02, 4.35, 3.86, 4.015, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7i2c91289819372.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.596667 3.7800 3.741250 [2,] 3.711667 3.8275 3.792500 [3,] 3.865000 3.9700 3.853750 [4,] 4.083333 4.0625 4.113125 [5,] 4.240000 4.1050 4.318750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.69548 3.862815 3.707511 [2,] 4.03452 4.077185 3.999989 $out [1] 4.5 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.59666666666667, 3.71166666666667, 3.865, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1maxi1289819372.ps tmp/1maxi1289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/2e2w31289819372.ps tmp/2e2w31289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/3e2w31289819372.ps tmp/3e2w31289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/4e2w31289819372.ps tmp/4e2w31289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/57bv61289819372.ps tmp/57bv61289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/67bv61289819372.ps tmp/67bv61289819372.png",intern=TRUE)) character(0) > try(system("convert tmp/7i2c91289819372.ps tmp/7i2c91289819372.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.196 0.950 1.567