R version 2.8.1 (2008-12-22) 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.43,4.44,4.44,4.44,4.45,4.47,4.48,4.48,4.5,4.52,4.52,4.53,4.53,4.63,4.66,4.67,4.68,4.69,4.69,4.7,4.71,4.72,4.72,4.72,4.73,4.74,4.76,4.81,4.82,4.83,4.83,4.84,4.89,4.92,4.95,4.95,5.01,5.05,5.08,5.11,5.14,5.17,5.18,5.2,5.22,5.24,5.28,5.29,5.33,5.4,5.43,5.46,5.46,5.46,5.47,5.49,5.5,5.54,5.55,5.55,5.56,5.6,5.61,5.63,5.64,5.66,5.67,5.69,5.77,5.77,5.78,5.8,5.82,5.85,5.87,5.88,5.9,5.91,5.94,5.97,5.98,6,6.01,6.02) > 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,] 4.43 4.53 4.72 4.95 5.29 5.55 5.80 6.02 [2,] 4.43 4.53 4.73 5.01 5.33 5.56 5.82 NA [3,] 4.44 4.63 4.74 5.05 5.40 5.60 5.85 NA [4,] 4.44 4.66 4.76 5.08 5.43 5.61 5.87 NA [5,] 4.44 4.67 4.81 5.11 5.46 5.63 5.88 NA [6,] 4.45 4.68 4.82 5.14 5.46 5.64 5.90 NA [7,] 4.47 4.69 4.83 5.17 5.46 5.66 5.91 NA [8,] 4.48 4.69 4.83 5.18 5.47 5.67 5.94 NA [9,] 4.48 4.70 4.84 5.20 5.49 5.69 5.97 NA [10,] 4.50 4.71 4.89 5.22 5.50 5.77 5.98 NA [11,] 4.52 4.72 4.92 5.24 5.54 5.77 6.00 NA [12,] 4.52 4.72 4.95 5.28 5.55 5.78 6.01 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 0.00 0.01 0.06 0.04 0.01 0.02 NA [2,] 0.01 0.10 0.01 0.04 0.07 0.04 0.03 NA [3,] 0.00 0.03 0.02 0.03 0.03 0.01 0.02 NA [4,] 0.00 0.01 0.05 0.03 0.03 0.02 0.01 NA [5,] 0.01 0.01 0.01 0.03 0.00 0.01 0.02 NA [6,] 0.02 0.01 0.01 0.03 0.00 0.02 0.01 NA [7,] 0.01 0.00 0.00 0.01 0.01 0.01 0.03 NA [8,] 0.00 0.01 0.01 0.02 0.02 0.02 0.03 NA [9,] 0.02 0.01 0.05 0.02 0.01 0.08 0.01 NA [10,] 0.02 0.01 0.03 0.02 0.04 0.00 0.02 NA [11,] 0.00 0.00 0.03 0.04 0.01 0.01 0.01 NA [12,] 0.01 0.00 0.00 0.01 0.00 0.02 0.01 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/1c0gy1241084148.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/2kyj21241084148.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/3l1yv1241084148.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/4o4b51241084148.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,] 4.430 4.430 4.440 4.44 4.440 4.45 4.47 4.48 4.48 4.500 4.520 4.520 [2,] 4.625 4.630 4.685 4.71 4.740 4.75 4.76 4.76 4.77 4.800 4.820 4.835 [3,] 5.120 5.010 5.050 5.08 5.110 5.14 5.17 5.18 5.20 5.220 5.240 5.280 [4,] 5.675 5.445 5.500 5.52 5.545 5.55 5.56 5.57 5.59 5.635 5.655 5.665 [5,] 6.020 5.820 5.850 5.87 5.880 5.90 5.91 5.94 5.97 5.980 6.000 6.010 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.533455 4.523295 4.563295 4.596281 4.629267 4.662253 4.692253 4.696281 [2,] 5.706545 5.496705 5.536705 5.563719 5.590733 5.617747 5.647747 5.663719 [,9] [,10] [,11] [,12] [1,] 4.710309 4.721351 4.741351 4.784337 [2,] 5.689691 5.718649 5.738649 5.775663 $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(4.43, 4.625, 5.12, 5.675, 6.02, 4.43, 4.63, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/52rmr1241084148.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] [,12] [1,] 0.000 0.010 0.000 0.00 0.010 0.00 0.000 0.00 0.010 0.000 0.000 0.00 [2,] 0.005 0.020 0.015 0.01 0.010 0.01 0.005 0.01 0.010 0.015 0.005 0.00 [3,] 0.010 0.040 0.020 0.02 0.010 0.01 0.010 0.02 0.020 0.020 0.010 0.01 [4,] 0.030 0.055 0.030 0.03 0.015 0.02 0.010 0.02 0.035 0.025 0.020 0.01 [5,] 0.060 0.100 0.030 0.05 0.020 0.03 0.010 0.03 0.050 0.040 0.040 0.02 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.004929597 0.01909856 0.01104224 0.008056323 0.00701408 0.004028161 [2,] 0.024929597 0.06090144 0.02895776 0.031943677 0.01298592 0.015971839 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.00701408 0.01402816 0.005070403 0.01402816 0.001042242 0.004028161 [2,] 0.01298592 0.02597184 0.034929597 0.02597184 0.018957758 0.015971839 $out [1] 0.03 0.00 0.03 0.08 $group [1] 5 5 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0.00499999999999989, 0.0100000000000007, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61d0g1241084148.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,] 4.43 4.630 4.720 4.950 5.330 5.550 5.800 6.02 [2,] 4.44 4.645 4.750 5.065 5.415 5.605 5.860 6.02 [3,] 4.46 4.685 4.825 5.155 5.460 5.650 5.905 6.02 [4,] 4.49 4.705 4.865 5.210 5.495 5.730 5.975 6.02 [5,] 4.52 4.720 4.950 5.280 5.550 5.780 6.010 6.02 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.437195 4.657634 4.772548 5.088865 5.423511 5.592987 5.852548 6.02 [2,] 4.482805 4.712366 4.877452 5.221135 5.496489 5.707013 5.957452 6.02 $out [1] 4.53 4.53 5.29 $group [1] 2 2 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(4.43, 4.44, 4.46, 4.49, 4.52, 4.63, 4.645, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7puu81241084148.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,] 5.058571 5.010 5.03750 [2,] 5.132143 5.095 5.12875 [3,] 5.165625 5.155 5.15500 [4,] 5.210000 5.210 5.19875 [5,] 5.258571 5.280 5.25000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 5.130114 5.102548 5.123073 [2,] 5.201136 5.207452 5.186927 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(5.05857142857143, 5.13214285714286, 5.165625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1c0gy1241084148.ps tmp/1c0gy1241084148.png") > system("convert tmp/2kyj21241084148.ps tmp/2kyj21241084148.png") > system("convert tmp/3l1yv1241084148.ps tmp/3l1yv1241084148.png") > system("convert tmp/4o4b51241084148.ps tmp/4o4b51241084148.png") > system("convert tmp/52rmr1241084148.ps tmp/52rmr1241084148.png") > system("convert tmp/61d0g1241084148.ps tmp/61d0g1241084148.png") > system("convert tmp/7puu81241084148.ps tmp/7puu81241084148.png") > > > proc.time() user system elapsed 1.237 0.978 2.065