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(36.68,36.77,36.78,36.78,37,37.12,37.3,37.34,37.4,37.4,37.34,37.29,37.39,37.42,37.42,43.49,44.3,44.36,44.52,44.66,44.77,44.77,44.82,44.97,45.28,45.5,45.52,45.52,45.17,45.25,45.32,45.41,45.44,45.44,45.46,45.53,45.61,45.8,45.83,45.83,45.96,46.01,46.18,46.32,46.51,46.51,46.56,46.54,46.62,46.76,46.82,46.82,46.7,46.72,46.47,46.74,46.89,46.89,46.96,47.6,47.67,47.58,47.58,47.58,47.57,47.53,47.68,47.56,47.81,47.81,47.81,47.81,48.12,48.13,48.01) > 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] 75 > (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] 7 7 7 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 36.68 37.39 45.28 45.61 46.62 47.67 48.12 [2,] 36.77 37.42 45.50 45.80 46.76 47.58 48.13 [3,] 36.78 37.42 45.52 45.83 46.82 47.58 48.01 [4,] 36.78 43.49 45.52 45.83 46.82 47.58 NA [5,] 37.00 44.30 45.17 45.96 46.70 47.57 NA [6,] 37.12 44.36 45.25 46.01 46.72 47.53 NA [7,] 37.30 44.52 45.32 46.18 46.47 47.68 NA [8,] 37.34 44.66 45.41 46.32 46.74 47.56 NA [9,] 37.40 44.77 45.44 46.51 46.89 47.81 NA [10,] 37.40 44.77 45.44 46.51 46.89 47.81 NA [11,] 37.34 44.82 45.46 46.56 46.96 47.81 NA [12,] 37.29 44.97 45.53 46.54 47.60 47.81 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.09 0.03 0.22 0.19 0.14 -0.09 0.01 [2,] 0.01 0.00 0.02 0.03 0.06 0.00 -0.12 [3,] 0.00 6.07 0.00 0.00 0.00 0.00 NA [4,] 0.22 0.81 -0.35 0.13 -0.12 -0.01 NA [5,] 0.12 0.06 0.08 0.05 0.02 -0.04 NA [6,] 0.18 0.16 0.07 0.17 -0.25 0.15 NA [7,] 0.04 0.14 0.09 0.14 0.27 -0.12 NA [8,] 0.06 0.11 0.03 0.19 0.15 0.25 NA [9,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [10,] -0.06 0.05 0.02 0.05 0.07 0.00 NA [11,] -0.05 0.15 0.07 -0.02 0.64 0.00 NA [12,] 0.10 0.31 0.08 0.08 0.07 0.31 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/102tk1319575017.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/2oanp1319575017.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/3hnzr1319575017.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/40u8z1319575017.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] [1,] 36.680 36.77 36.78 43.490 44.300 44.36 44.52 44.660 44.770 44.770 44.82 [2,] 41.335 41.46 41.47 43.490 44.300 44.36 44.52 44.660 44.770 44.770 44.82 [3,] 45.610 45.80 45.83 45.675 45.565 45.63 45.75 45.865 45.975 45.975 46.01 [4,] 47.145 47.17 47.20 46.820 46.700 46.72 46.47 46.740 46.890 46.890 46.96 [5,] 48.120 48.13 48.01 47.580 47.570 47.53 47.68 47.560 47.810 47.810 47.81 [,12] [1,] 44.970 [2,] 44.970 [3,] 46.035 [4,] 47.600 [5,] 47.810 $n [1] 7 7 7 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 42.14036 42.39008 42.40814 43.52704 44.01692 44.10772 44.49219 44.52333 [2,] 49.07964 49.20992 49.25186 47.82296 47.11308 47.15228 47.00781 47.20667 [,9] [,10] [,11] [,12] [1,] 44.60753 44.60753 44.62963 44.33857 [2,] 47.34247 47.34247 47.39037 47.73143 $out [1] 36.78 37.00 37.12 37.30 37.34 37.40 37.40 37.34 37.29 $group [1] 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(36.68, 41.335, 45.61, 47.145, 48.12, 36.77, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5wetv1319575017.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.090 0.000 0 -0.35 -0.040 0.070 0.040 0.03 0 -0.060 -0.050 0.07 [2,] 0.020 0.000 0 -0.12 0.020 0.070 0.040 0.06 0 0.000 -0.020 0.08 [3,] 0.090 0.010 0 0.06 0.055 0.155 0.115 0.13 0 0.035 0.035 0.09 [4,] 0.165 0.025 0 0.22 0.080 0.170 0.140 0.19 0 0.050 0.150 0.31 [5,] 0.220 0.060 0 0.22 0.120 0.180 0.270 0.25 0 0.070 0.150 0.31 $n [1] 7 7 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.003408339 -0.004929597 0 -0.1593110 0.01629806 0.09049677 0.05049677 [2,] 0.176591661 0.024929597 0 0.2793110 0.09370194 0.21950323 0.17950323 [,8] [,9] [,10] [,11] [,12] [1,] 0.0461458 0 0.002748385 -0.07465549 -0.05835743 [2,] 0.2138542 0 0.067251615 0.14465549 0.23835743 $out [1] -0.12 6.07 0.81 -0.25 -0.12 0.64 $group [1] 2 3 4 6 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0900000000000034, 0.0200000000000031, 0.0900000000000034, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/61vyy1319575017.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,] 36.680 37.390 45.17 45.610 46.47 47.530 48.010 [2,] 36.780 40.455 45.30 45.830 46.71 47.575 48.065 [3,] 37.205 44.440 45.44 46.095 46.79 47.625 48.120 [4,] 37.340 44.770 45.51 46.510 46.89 47.810 48.125 [5,] 37.400 44.970 45.53 46.560 46.96 47.810 48.130 $n [1] 12 12 12 12 12 12 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 36.94958 42.4719 45.34422 45.78485 46.7079 47.51781 48.06527 [2,] 37.46042 46.4081 45.53578 46.40515 46.8721 47.73219 48.17473 $out [1] 47.6 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(36.68, 36.78, 37.205, 37.34, 37.4, 37.39, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7x2v51319575017.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,] 43.91000 45.5650 44.24000 [2,] 44.16548 45.6525 44.81000 [3,] 44.53833 45.8150 45.56063 [4,] 44.80333 45.9750 45.86625 [5,] 44.95667 46.0350 46.22250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 44.24740 45.66791 45.07886 [2,] 44.82926 45.96209 46.04239 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(43.91, 44.1654761904762, 44.5383333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/102tk1319575017.ps tmp/102tk1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/2oanp1319575017.ps tmp/2oanp1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/3hnzr1319575017.ps tmp/3hnzr1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/40u8z1319575017.ps tmp/40u8z1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/5wetv1319575017.ps tmp/5wetv1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/61vyy1319575017.ps tmp/61vyy1319575017.png",intern=TRUE)) character(0) > try(system("convert tmp/7x2v51319575017.ps tmp/7x2v51319575017.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.520 0.220 2.724