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(236.77,239.23,240.23,240.33,240.33,240.34,240.34,240.27,240.29,240.29,240.29,240.29,240.31,239.95,242.33,242.11,241.53,241.53,241.53,241.41,241.41,241.66,241.8,241.99,246.24,247.57,247.84,248.27,248.3,248.31,248.31,248.38,248.37,248.41,248.68,248.75,248.75,247.95,248.13,247.86,246.23,245.98,245.98,246.27,246.31,246.3,246.67,246.78,246.78,247.91,247.99,248.6,248.68,248.75,248.75,249.03,249.05,249.57,249.35,249.46,249.46,250.82,254.19,255.18,256.68,256.73,256.73,257.39,257.78,258.67,258.71,258.91,258.91,261.38,262.42,262.77,263.24,262.83,262.83,263.09,263.6,265.68,266.08,266.28) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 236.77 240.31 246.24 248.75 246.78 249.46 258.91 NA [2,] 239.23 239.95 247.57 247.95 247.91 250.82 261.38 NA [3,] 240.23 242.33 247.84 248.13 247.99 254.19 262.42 NA [4,] 240.33 242.11 248.27 247.86 248.60 255.18 262.77 NA [5,] 240.33 241.53 248.30 246.23 248.68 256.68 263.24 NA [6,] 240.34 241.53 248.31 245.98 248.75 256.73 262.83 NA [7,] 240.34 241.53 248.31 245.98 248.75 256.73 262.83 NA [8,] 240.27 241.41 248.38 246.27 249.03 257.39 263.09 NA [9,] 240.29 241.41 248.37 246.31 249.05 257.78 263.60 NA [10,] 240.29 241.66 248.41 246.30 249.57 258.67 265.68 NA [11,] 240.29 241.80 248.68 246.67 249.35 258.71 266.08 NA [12,] 240.29 241.99 248.75 246.78 249.46 258.91 266.28 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.46 -0.36 1.33 -0.80 1.13 1.36 2.47 NA [2,] 1.00 2.38 0.27 0.18 0.08 3.37 1.04 NA [3,] 0.10 -0.22 0.43 -0.27 0.61 0.99 0.35 NA [4,] 0.00 -0.58 0.03 -1.63 0.08 1.50 0.47 NA [5,] 0.01 0.00 0.01 -0.25 0.07 0.05 -0.41 NA [6,] 0.00 0.00 0.00 0.00 0.00 0.00 0.00 NA [7,] -0.07 -0.12 0.07 0.29 0.28 0.66 0.26 NA [8,] 0.02 0.00 -0.01 0.04 0.02 0.39 0.51 NA [9,] 0.00 0.25 0.04 -0.01 0.52 0.89 2.08 NA [10,] 0.00 0.14 0.27 0.37 -0.22 0.04 0.40 NA [11,] 0.00 0.19 0.07 0.11 0.11 0.20 0.20 NA [12,] 0.02 4.25 0.00 0.00 0.00 0.00 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/166ks1319184047.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/2f3361319184047.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/3lpaf1319184047.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/4t4ds1319184047.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] [1,] 236.770 239.230 240.230 240.330 240.33 240.340 240.340 240.27 240.290 [2,] 243.275 243.760 245.085 244.985 243.88 243.755 243.755 243.84 243.860 [3,] 246.780 247.910 247.990 248.270 248.30 248.310 248.310 248.38 248.370 [4,] 249.105 249.385 251.160 251.890 252.68 252.740 252.740 253.21 253.415 [5,] 249.460 250.820 254.190 255.180 263.24 262.830 262.830 263.09 263.600 [,10] [,11] [,12] [1,] 240.29 240.290 240.290 [2,] 243.98 244.235 244.385 [3,] 248.41 248.680 248.750 [4,] 254.12 254.030 254.185 [5,] 265.68 266.080 266.280 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 243.2984 244.5508 244.3621 244.1464 243.0448 242.9443 242.9443 242.7844 [2,] 250.2616 251.2692 251.6179 252.3936 253.5552 253.6757 253.6757 253.9756 [,9] [,10] [,11] [,12] [1,] 242.6639 242.3546 242.8306 242.8976 [2,] 254.0761 254.4654 254.5294 254.6024 $out [1] 258.91 261.38 262.42 262.77 $group [1] 1 2 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(236.77, 243.275, 246.78, 249.105, 249.46, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5m17u1319184047.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] [1,] -0.800 0.080 -0.27 -0.580 -0.250 0 -0.120 -0.010 -0.010 -0.22 0.000 [2,] 0.385 0.225 -0.06 -0.290 -0.125 0 0.000 0.010 0.020 0.02 0.090 [3,] 1.330 1.000 0.35 0.030 0.010 0 0.260 0.020 0.250 0.14 0.110 [4,] 1.910 1.710 0.52 0.275 0.030 0 0.285 0.215 0.705 0.32 0.195 [5,] 2.470 3.370 0.99 0.470 0.070 0 0.660 0.510 0.890 0.40 0.200 [,12] [1,] 0.00 [2,] 0.00 [3,] 0.00 [4,] 0.02 [5,] 0.02 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.4192946 0.113182 0.003633357 -0.3074089 -0.0825635 0 0.0898026 [2,] 2.2407054 1.886818 0.696366643 0.3674089 0.1025635 0 0.4301974 [,8] [,9] [,10] [,11] [,12] [1,] -0.1024227 -0.1590709 -0.03915516 0.04729569 -0.01290065 [2,] 0.1424227 0.6590709 0.31915516 0.17270431 0.01290065 $out [1] -1.63 1.50 -0.41 2.08 4.25 $group [1] 4 4 5 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.800000000000011, 0.384999999999991, 1.32999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6fdpi1319184047.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] [,8] [1,] 240.23 241.410 247.570 245.980 247.910 249.460 261.380 NA [2,] 240.25 241.410 248.055 246.250 248.295 254.685 262.595 NA [3,] 240.29 241.530 248.310 246.490 248.750 256.730 262.960 NA [4,] 240.33 241.895 248.395 247.905 249.200 258.225 264.640 NA [5,] 240.34 242.330 248.750 248.750 249.570 258.910 266.280 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 240.2535 241.3088 248.1549 245.7351 248.3372 255.1154 262.0273 NA [2,] 240.3265 241.7512 248.4651 247.2449 249.1628 258.3446 263.8927 NA $out [1] 236.77 239.23 240.31 239.95 246.24 246.78 258.91 $group [1] 1 1 2 2 3 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(240.23, 240.25, 240.29, 240.33, 240.34, 241.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/772xm1319184047.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,] 249.0186 247.910 248.1225 [2,] 249.1143 248.130 248.1850 [3,] 249.2936 248.310 248.3587 [4,] 249.8136 248.395 248.8438 [5,] 250.3514 248.750 249.2850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 248.9746 248.1891 248.0583 [2,] 249.6125 248.4309 248.6592 $out [1] 246.7457 247.8300 246.7800 246.1900 246.5725 $group [1] 1 1 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(249.018571428571, 249.114285714286, 249.293571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/166ks1319184047.ps tmp/166ks1319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/2f3361319184047.ps tmp/2f3361319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/3lpaf1319184047.ps tmp/3lpaf1319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/4t4ds1319184047.ps tmp/4t4ds1319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/5m17u1319184047.ps tmp/5m17u1319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/6fdpi1319184047.ps tmp/6fdpi1319184047.png",intern=TRUE)) character(0) > try(system("convert tmp/772xm1319184047.ps tmp/772xm1319184047.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.532 0.330 1.865