R version 2.10.1 (2009-12-14) 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.06,2.06,2.05,2.04,2.04,2.03,2.03,2.03,2.02,2.02,2.02,2.02,2.01,2.01,2.01,2,2,1.99,1.99,1.99,1.98,1.97,1.97,1.96,1.96,1.96,1.96,1.95,1.94,1.94,1.93,1.93,1.93,1.92,1.92,1.9,1.9,1.9,1.9,1.89,1.88,1.88,1.87,1.86,1.86,1.85,1.83,1.82,1.8,1.8,1.79,1.78,1.78,1.78,1.77,1.77,1.76,1.75,1.75,1.75,1.75,1.75,1.74,1.74,1.74,1.74,1.73,1.73,1.73,1.73,1.73,1.72,1.71,1.71,1.71,1.7,1.7,1.7,1.7,1.7,1.69,1.68,1.67,1.65,1.61) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.06 2.01 1.96 1.90 1.80 1.75 1.71 1.61 [2,] 2.06 2.01 1.96 1.90 1.80 1.75 1.71 NA [3,] 2.05 2.01 1.96 1.90 1.79 1.74 1.71 NA [4,] 2.04 2.00 1.95 1.89 1.78 1.74 1.70 NA [5,] 2.04 2.00 1.94 1.88 1.78 1.74 1.70 NA [6,] 2.03 1.99 1.94 1.88 1.78 1.74 1.70 NA [7,] 2.03 1.99 1.93 1.87 1.77 1.73 1.70 NA [8,] 2.03 1.99 1.93 1.86 1.77 1.73 1.70 NA [9,] 2.02 1.98 1.93 1.86 1.76 1.73 1.69 NA [10,] 2.02 1.97 1.92 1.85 1.75 1.73 1.68 NA [11,] 2.02 1.97 1.92 1.83 1.75 1.73 1.67 NA [12,] 2.02 1.96 1.90 1.82 1.75 1.72 1.65 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] -0.01 0.00 0.00 0.00 -0.01 -0.01 0.00 NA [3,] -0.01 -0.01 -0.01 -0.01 -0.01 0.00 -0.01 NA [4,] 0.00 0.00 -0.01 -0.01 0.00 0.00 0.00 NA [5,] -0.01 -0.01 0.00 0.00 0.00 0.00 0.00 NA [6,] 0.00 0.00 -0.01 -0.01 -0.01 -0.01 0.00 NA [7,] 0.00 0.00 0.00 -0.01 0.00 0.00 0.00 NA [8,] -0.01 -0.01 0.00 0.00 -0.01 0.00 -0.01 NA [9,] 0.00 -0.01 -0.01 -0.01 -0.01 0.00 -0.01 NA [10,] 0.00 0.00 0.00 -0.02 0.00 0.00 -0.01 NA [11,] 0.00 -0.01 -0.02 -0.01 0.00 -0.01 -0.02 NA [12,] -0.01 0.00 0.00 -0.02 0.00 -0.01 -0.04 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/1k1r61272208785.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/rcomp/tmp/2dara1272208785.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/rcomp/tmp/3dara1272208785.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/rcomp/tmp/4ojqd1272208785.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.610 1.710 1.710 1.700 1.70 1.700 1.70 1.70 1.690 1.680 1.670 1.650 [2,] 1.730 1.775 1.765 1.760 1.76 1.760 1.75 1.75 1.745 1.740 1.740 1.735 [3,] 1.850 1.900 1.900 1.890 1.88 1.880 1.87 1.86 1.860 1.850 1.830 1.820 [4,] 1.985 1.985 1.985 1.975 1.97 1.965 1.96 1.96 1.955 1.945 1.945 1.930 [5,] 2.060 2.060 2.050 2.040 2.04 2.030 2.03 2.03 2.020 2.020 2.020 2.020 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.707553 1.774591 1.768620 1.761605 1.754591 1.757577 1.744591 1.734591 [2,] 1.992447 2.025409 2.031380 2.018395 2.005409 2.002423 1.995409 1.985409 [,9] [,10] [,11] [,12] [1,] 1.734591 1.727577 1.707577 1.703549 [2,] 1.985409 1.972423 1.952423 1.936451 $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.61, 1.73, 1.85, 1.985, 2.06, 1.71, 1.775, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5ojqd1272208785.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 -0.01 -0.01 -0.010 -0.010 -0.01 0 -0.01 -0.010 -0.010 -0.020 [2,] 0 -0.01 -0.01 -0.005 -0.005 -0.01 0 -0.01 -0.010 -0.005 -0.015 [3,] 0 0.00 -0.01 0.000 0.000 -0.01 0 -0.01 -0.010 0.000 -0.010 [4,] 0 0.00 -0.01 0.000 0.000 0.00 0 0.00 -0.005 0.000 -0.005 [5,] 0 0.00 -0.01 0.000 0.000 0.00 0 0.00 0.000 0.000 0.000 [,12] [1,] -0.020 [2,] -0.015 [3,] -0.010 [4,] 0.000 [5,] 0.000 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 -0.005971839 -0.01 -0.002985919 -0.002985919 -0.015971839 0 [2,] 0 0.005971839 -0.01 0.002985919 0.002985919 -0.004028161 0 [,8] [,9] [,10] [,11] [,12] [1,] -0.015971839 -0.01298592 -0.002985919 -0.015971839 -0.018957758 [2,] -0.004028161 -0.00701408 0.002985919 -0.004028161 -0.001042242 $out [1] 0.00 -0.01 -0.02 -0.04 $group [1] 3 7 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, -0.0100000000000002, -0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ojqd1272208785.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] [,8] [1,] 2.020 1.960 1.900 1.820 1.750 1.720 1.670 1.61 [2,] 2.020 1.975 1.925 1.855 1.755 1.730 1.685 1.61 [3,] 2.030 1.990 1.935 1.875 1.775 1.735 1.700 1.61 [4,] 2.045 2.005 1.955 1.895 1.785 1.740 1.705 1.61 [5,] 2.060 2.010 1.960 1.900 1.800 1.750 1.710 1.61 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.018597 1.976317 1.921317 1.856756 1.761317 1.730439 1.690878 1.61 [2,] 2.041403 2.003683 1.948683 1.893244 1.788683 1.739561 1.709122 1.61 $out [1] 1.65 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2.02, 2.02, 2.03, 2.045, 2.06, 1.96, 1.975, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ht7g1272208785.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,] 1.831429 1.820 1.832500 [2,] 1.847857 1.850 1.846250 [3,] 1.859286 1.865 1.855625 [4,] 1.870000 1.885 1.866250 [5,] 1.884286 1.900 1.880000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.849186 1.849036 1.846503 [2,] 1.869385 1.880964 1.864747 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.83142857142857, 1.84785714285714, 1.85928571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1k1r61272208785.ps tmp/1k1r61272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/2dara1272208785.ps tmp/2dara1272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/3dara1272208785.ps tmp/3dara1272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/4ojqd1272208785.ps tmp/4ojqd1272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/5ojqd1272208785.ps tmp/5ojqd1272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/6ojqd1272208785.ps tmp/6ojqd1272208785.png",intern=TRUE)) character(0) > try(system("convert tmp/7ht7g1272208785.ps tmp/7ht7g1272208785.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.600 1.510 2.665