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(105.46,105.1,105.09,105.04,104.87,104.67,104.54,104.9,104.9,104.89,104.8,104.41,104.31,103.88,103.88,103.86,103.89,103.98,103.98,104.29,104.29,104.24,103.98,103.54,103.44,103.32,103.3,103.26,103.14,103.11,102.91,103.23,103.23,103.14,102.91,102.42,102.1,102.07,102.06,101.98,101.83,101.75,101.56,101.66,101.65,101.61,101.52,101.31,101.19,101.11,101.1,101.07,100.98,100.93,100.92,101.02,101.01,100.97,100.89,100.62,100.53,100.48,100.48,100.47,100.52,100.49,100.47,100.44,100.35,100.38,100.33,100.32) > 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,] 105.46 104.31 103.44 102.10 101.19 100.53 NA [2,] 105.10 103.88 103.32 102.07 101.11 100.48 NA [3,] 105.09 103.88 103.30 102.06 101.10 100.48 NA [4,] 105.04 103.86 103.26 101.98 101.07 100.47 NA [5,] 104.87 103.89 103.14 101.83 100.98 100.52 NA [6,] 104.67 103.98 103.11 101.75 100.93 100.49 NA [7,] 104.54 103.98 102.91 101.56 100.92 100.47 NA [8,] 104.90 104.29 103.23 101.66 101.02 100.44 NA [9,] 104.90 104.29 103.23 101.65 101.01 100.35 NA [10,] 104.89 104.24 103.14 101.61 100.97 100.38 NA [11,] 104.80 103.98 102.91 101.52 100.89 100.33 NA [12,] 104.41 103.54 102.42 101.31 100.62 100.32 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.36 -0.43 -0.12 -0.03 -0.08 -0.05 NA [2,] -0.01 0.00 -0.02 -0.01 -0.01 0.00 NA [3,] -0.05 -0.02 -0.04 -0.08 -0.03 -0.01 NA [4,] -0.17 0.03 -0.12 -0.15 -0.09 0.05 NA [5,] -0.20 0.09 -0.03 -0.08 -0.05 -0.03 NA [6,] -0.13 0.00 -0.20 -0.19 -0.01 -0.02 NA [7,] 0.36 0.31 0.32 0.10 0.10 -0.03 NA [8,] 0.00 0.00 0.00 -0.01 -0.01 -0.09 NA [9,] -0.01 -0.05 -0.09 -0.04 -0.04 0.03 NA [10,] -0.09 -0.26 -0.23 -0.09 -0.08 -0.05 NA [11,] -0.39 -0.44 -0.49 -0.21 -0.27 -0.01 NA [12,] -0.10 -0.10 -0.32 -0.12 -0.09 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/1iw7d1319620697.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/215yc1319620697.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/3qlno1319620697.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/4qjdi1319620697.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] [1,] 100.53 100.480 100.48 100.47 100.520 100.49 100.470 100.440 100.35 100.380 [2,] 101.19 101.110 101.10 101.07 100.980 100.93 100.920 101.020 101.01 100.970 [3,] 102.77 102.695 102.68 102.62 102.485 102.43 102.235 102.445 102.44 102.375 [4,] 104.31 103.880 103.88 103.86 103.890 103.98 103.980 104.290 104.29 104.240 [5,] 105.46 105.100 105.09 105.04 104.870 104.67 104.540 104.900 104.90 104.890 [,11] [,12] [1,] 100.330 100.320 [2,] 100.890 100.620 [3,] 102.215 101.865 [4,] 103.980 103.540 [5,] 104.800 104.410 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 100.7575 100.9083 100.8868 100.8204 100.608 100.4627 100.2612 100.3357 [2,] 104.7825 104.4817 104.4732 104.4196 104.362 104.3973 104.2088 104.5543 [,9] [,10] [,11] [,12] [1,] 100.3243 100.2657 100.2219 99.98151 [2,] 104.5557 104.4843 104.2081 103.74849 $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(100.53, 101.19, 102.77, 104.31, 105.46, 100.48, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5lbij1319620697.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.43 -0.02 -0.080 -0.170 -0.08 -0.200 -0.030 -0.010 -0.09 -0.26 -0.49 [2,] -0.36 -0.01 -0.050 -0.150 -0.08 -0.190 0.100 -0.010 -0.05 -0.23 -0.44 [3,] -0.10 -0.01 -0.035 -0.105 -0.04 -0.075 0.205 -0.005 -0.04 -0.09 -0.33 [4,] -0.05 0.00 -0.020 0.030 -0.03 -0.010 0.320 0.000 -0.01 -0.08 -0.21 [5,] -0.03 0.00 -0.010 0.050 -0.03 0.000 0.360 0.000 0.03 -0.05 -0.01 [,12] [1,] -0.12 [2,] -0.12 [3,] -0.10 [4,] -0.10 [5,] -0.09 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.29996001 -0.016450323 -0.05435097 -0.22110581 -0.072251615 -0.19110581 [2,] 0.09996001 -0.003549677 -0.01564903 0.01110581 -0.007748385 0.04110581 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.06309289 -0.011450323 -0.06580129 -0.186754845 -0.4783574 -0.11413195 [2,] 0.34690711 0.001450323 -0.01419871 0.006754845 -0.1816426 -0.08586805 $out [1] -0.20 0.09 -0.09 -0.32 $group [1] 5 5 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.430000000000007, -0.359999999999999, -0.100000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/655xy1319620697.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,] 104.410 103.540 102.910 101.310 100.890 100.320 NA [2,] 104.735 103.880 103.010 101.585 100.925 100.365 NA [3,] 104.895 103.980 103.185 101.705 100.995 100.470 NA [4,] 105.065 104.265 103.280 102.020 101.085 100.485 NA [5,] 105.460 104.310 103.440 102.100 101.190 100.530 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 104.7445 103.8044 103.0619 101.5066 100.922 100.4153 NA [2,] 105.0455 104.1556 103.3081 101.9034 101.068 100.5247 NA $out [1] 102.42 100.62 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(104.41, 104.735, 104.895, 105.065, 105.46, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7k4e31319620697.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,] 102.3967 101.8650 102.3800 [2,] 102.4467 102.3050 102.4219 [3,] 102.5550 102.4425 102.5206 [4,] 102.6325 102.6500 102.5725 [5,] 102.8383 102.7700 102.7550 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 102.4702 102.2851 102.4519 [2,] 102.6398 102.5999 102.5893 $out [1] 102.1033 102.0263 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.396666666667, 102.446666666667, 102.555, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1iw7d1319620697.ps tmp/1iw7d1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/215yc1319620697.ps tmp/215yc1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/3qlno1319620697.ps tmp/3qlno1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/4qjdi1319620697.ps tmp/4qjdi1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/5lbij1319620697.ps tmp/5lbij1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/655xy1319620697.ps tmp/655xy1319620697.png",intern=TRUE)) character(0) > try(system("convert tmp/7k4e31319620697.ps tmp/7k4e31319620697.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.562 0.328 1.939