R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(6.91,6.98,7.05,6.99,6.94,6.91,6.92,6.85,6.85,6.85,6.82,6.68,6.8,6.79,6.84,6.8,6.84,6.8,6.75,6.81,6.84,6.8,6.83,6.78,6.71,6.74,6.74,6.73,6.65,6.65,6.7,6.66,6.58,6.67,6.59,6.64,6.61,6.61,6.57,6.55,6.58,6.59,6.6,6.59,6.54,6.52,6.51,6.49,6.52,6.5,6.47,6.48,6.42,6.42,6.34,6.33,6.37,6.36,6.33,6.35,6.31,6.33,6.31,6.22,6.27,6.34,6.3,6.28,6.24,6.23,6.23,6.25) > 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,] 6.91 6.80 6.71 6.61 6.52 6.31 NA [2,] 6.98 6.79 6.74 6.61 6.50 6.33 NA [3,] 7.05 6.84 6.74 6.57 6.47 6.31 NA [4,] 6.99 6.80 6.73 6.55 6.48 6.22 NA [5,] 6.94 6.84 6.65 6.58 6.42 6.27 NA [6,] 6.91 6.80 6.65 6.59 6.42 6.34 NA [7,] 6.92 6.75 6.70 6.60 6.34 6.30 NA [8,] 6.85 6.81 6.66 6.59 6.33 6.28 NA [9,] 6.85 6.84 6.58 6.54 6.37 6.24 NA [10,] 6.85 6.80 6.67 6.52 6.36 6.23 NA [11,] 6.82 6.83 6.59 6.51 6.33 6.23 NA [12,] 6.68 6.78 6.64 6.49 6.35 6.25 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.07 -0.01 0.03 0.00 -0.02 0.02 NA [2,] 0.07 0.05 0.00 -0.04 -0.03 -0.02 NA [3,] -0.06 -0.04 -0.01 -0.02 0.01 -0.09 NA [4,] -0.05 0.04 -0.08 0.03 -0.06 0.05 NA [5,] -0.03 -0.04 0.00 0.01 0.00 0.07 NA [6,] 0.01 -0.05 0.05 0.01 -0.08 -0.04 NA [7,] -0.07 0.06 -0.04 -0.01 -0.01 -0.02 NA [8,] 0.00 0.03 -0.08 -0.05 0.04 -0.04 NA [9,] 0.00 -0.04 0.09 -0.02 -0.01 -0.01 NA [10,] -0.03 0.03 -0.08 -0.01 -0.03 0.00 NA [11,] -0.14 -0.05 0.05 -0.02 0.02 0.02 NA [12,] 0.12 -0.07 -0.03 0.03 -0.04 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/wessaorg/rcomp/tmp/1rjsh1319655960.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/wessaorg/rcomp/tmp/2733w1319655960.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/wessaorg/rcomp/tmp/3ru9x1319655960.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/wessaorg/rcomp/tmp/4dslg1319655960.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] [,12] [1,] 6.31 6.330 6.310 6.22 6.270 6.34 6.30 6.280 6.24 6.230 6.23 6.250 [2,] 6.52 6.500 6.470 6.48 6.420 6.42 6.34 6.330 6.37 6.360 6.33 6.350 [3,] 6.66 6.675 6.655 6.64 6.615 6.62 6.65 6.625 6.56 6.595 6.55 6.565 [4,] 6.80 6.790 6.840 6.80 6.840 6.80 6.75 6.810 6.84 6.800 6.82 6.680 [5,] 6.91 6.980 7.050 6.99 6.940 6.91 6.92 6.850 6.85 6.850 6.83 6.780 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 6.479391 6.487941 6.416338 6.43359 6.344086 6.374888 6.385537 6.315384 [2,] 6.840609 6.862059 6.893662 6.84641 6.885914 6.865112 6.914463 6.934616 [,9] [,10] [,11] [,12] [1,] 6.256835 6.311186 6.233934 6.352139 [2,] 6.863165 6.878814 6.866066 6.777861 $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.31, 6.52, 6.66, 6.8, 6.91, 6.33, 6.5, 6.675, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5kvzy1319655960.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.02 -0.04 -0.09 -0.08 -0.04 -0.080 -0.070 -0.08 -0.04 -0.03 -0.14 -0.07 [2,] -0.01 -0.03 -0.06 -0.06 -0.03 -0.050 -0.040 -0.05 -0.02 -0.03 -0.05 -0.04 [3,] 0.01 -0.01 -0.03 -0.01 0.00 -0.015 -0.015 -0.02 -0.01 -0.02 0.00 -0.03 [4,] 0.03 0.05 -0.01 0.04 0.01 0.010 -0.010 0.03 0.00 0.00 0.02 0.03 [5,] 0.07 0.07 0.01 0.05 0.01 0.050 -0.010 0.04 0.00 0.03 0.05 0.12 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.01580129 -0.06160258 -0.062251615 -0.07450323 -0.02580129 -0.05370194 [2,] 0.03580129 0.04160258 0.002251615 0.05450323 0.02580129 0.02370194 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.034350969 -0.07160258 -0.022900646 -0.039350969 -0.04515226 -0.07946182 [2,] 0.004350969 0.03160258 0.002900646 -0.000649031 0.04515226 0.01946182 $out [1] 0.07 0.06 0.09 -0.08 $group [1] 5 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0199999999999996, -0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6h15u1319655960.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,] 6.82 6.750 6.580 6.490 6.330 6.220 NA [2,] 6.85 6.795 6.645 6.530 6.345 6.235 NA [3,] 6.91 6.800 6.665 6.575 6.395 6.275 NA [4,] 6.96 6.835 6.720 6.595 6.475 6.310 NA [5,] 7.05 6.840 6.740 6.610 6.520 6.340 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 6.859828 6.781756 6.630792 6.545353 6.335706 6.240792 NA [2,] 6.960172 6.818244 6.699208 6.604647 6.454294 6.309208 NA $out [1] 6.68 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(6.82, 6.85, 6.91, 6.96, 7.05, 6.75, 6.795, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7qtbd1319655960.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,] 6.531667 6.5500 6.527500 [2,] 6.570833 6.5800 6.577500 [3,] 6.609167 6.6225 6.603125 [4,] 6.635833 6.6525 6.646250 [5,] 6.663333 6.6750 6.660000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 6.579520 6.589432 6.571768 [2,] 6.638814 6.655568 6.634482 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(6.53166666666667, 6.57083333333333, 6.60916666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1rjsh1319655960.ps tmp/1rjsh1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/2733w1319655960.ps tmp/2733w1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/3ru9x1319655960.ps tmp/3ru9x1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/4dslg1319655960.ps tmp/4dslg1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/5kvzy1319655960.ps tmp/5kvzy1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/6h15u1319655960.ps tmp/6h15u1319655960.png",intern=TRUE)) character(0) > try(system("convert tmp/7qtbd1319655960.ps tmp/7qtbd1319655960.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.613 0.474 2.097